Esempio n. 1
0
 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()
Esempio n. 2
0
 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()