def drop_storage(alias: str, force: bool): """Drops a storage. The storage must be empty.""" manage.drop_storage(storages.storage(alias), force=force)
def __(alias: str, force: bool = False): drop_storage(storages.storage(alias), force=force)
def ensure_storage(alias: str): """Creates the storage if it do not exist""" manage.ensure_storage(storages.storage(alias))
def __(alias: str): ensure_storage(storages.storage(alias))
def __(alias: str, file_name: str): return file_exists(storages.storage(alias), file_name=file_name)
def __(alias: str) -> StorageClient: return storage_client_type(storages.storage(alias))
def __(alias: str, file_name: str, compression: Compression = Compression.NONE): return write_file_command(storages.storage(alias), file_name=file_name, compression=compression)
def __(alias: str, file_name: str, force: bool = True): return delete_file_command(storages.storage(alias), file_name=file_name, force=force)