def _test(self, provider):
     path = provider.get('config', {}).get('path', None)
     if not os.path.exists(path):
         raise IngestFileError.notExistsError()
     if not os.path.isdir(path):
         raise IngestFileError.isNotDirError()
 def _test(self, provider):
     path = provider.get('config', {}).get('path', None)
     if not os.path.exists(path):
         raise IngestFileError.notExistsError()
     if not os.path.isdir(path):
         raise IngestFileError.isNotDirError()