コード例 #1
0
ファイル: local.py プロジェクト: nandoflorestan/keepluggable
 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)
コード例 #2
0
ファイル: local.py プロジェクト: pitymaia/keepluggable
 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)