Testing framework¶
Multiple functions have been added to be able to test a storage. These functions might change or be removed in the future and should (RFC2119) not be used.
Managing storages¶
- mara_storage.manage.ensure_storage(storage: object)¶
Creates the storage if it do not exist
- mara_storage.manage.drop_storage(storage: object, force: bool = False)¶
Drops a storage. The storage must be empty.
- Parameters
force – If True, the storage is dropped including its content. If the storage does not exist, no action is taken.
Blob and file info¶
- mara_storage.info.file_exists(storage: object, file_name: str) bool¶
Check if a file exists on a storage