Ejemplo n.º 1
0
 def __init__(self, orchestrator):
     super(LocalFilesystemStorage, self).__init__(orchestrator)
     self.storage_path = orchestrator.settings.read("local.storage_path")
     self.directory = resolve_path(self.storage_path).absolute()
     if not self.directory.exists():
         self.directory.mkdir(parents=True)
Ejemplo n.º 2
0
 def __init__(self, settings):
     self.storage_path = read_setting(settings, "local.storage_path")
     self.directory = resolve_path(self.storage_path).absolute()
     if not self.directory.exists():
         self.directory.mkdir(parents=True)