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)
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)