Storage.FilesystemStore
An Lwt-aware local filesystem storage backend for a Zarr V3 hierarchy.
include Zarr.Storage.S with type 'a io := 'a Lwt.t
module Group : sig ... end
module Array : sig ... end
val hierarchy : t -> (Zarr.Node.Array.t list * Zarr.Node.Group.t list) Lwt.t
hierarchy t
returns p
where p
is a pair of lists representing all nodes in store t
. The first element of the pair is a list of all array nodes, and the second element is a list of all group nodes. This operation returns a pair of empty lists if store t
is empty.
val clear : t -> unit Lwt.t
clear t
clears the store t
by deleting all nodes. If the store is already empty, this is a no-op.
val create : ?perm:Unix.file_perm -> string -> t
create ~perm dir
returns a new filesystem store.
val open_store : ?perm:Unix.file_perm -> string -> t
open_store ~perm dir
returns an existing filesystem Zarr store.