Crate zarrs_zip

Source
Expand description

A storage adapter for zip files for the zarrs crate.

use zarrs_storage::StoreKey;
use zarrs_filesystem::FilesystemStore;
use zarrs_zip::ZipStorageAdapter;

let fs_root = PathBuf::from("/path/to/a/directory");
let fs_store = Arc::new(FilesystemStore::new(&fs_root)?);
let zip_key = StoreKey::new("zarr.zip")?;
let zip_store = Arc::new(ZipStorageAdapter::new(fs_store, zip_key)?);

§Licence

zarrs_zip is licensed under either of

Structs§

ZipStorageAdapter
A zip storage adapter.

Enums§

ZipStorageAdapterCreateError
A zip store creation error.