type fs_error = [
with type error := error
and type write_error := write_error
Disconnect from the file system. While this might take some time to complete, it can never result in an error.
read t key offset length reads up to
length bytes from the value associated with
key. If less data is returned than requested, this indicates the end of the value.
create t path creates an empty file at
path contains directories that do not yet exist,
create will attempt to create them.
mkdir t path creates an empty directory at
path contains intermediate directories that do not yet exist,
mkdir will create them. If a directory already exists at
`Ok () and takes no action.
destroy t path removes a
path (which may be a file or an empty directory) on filesystem
stat t path returns information about file or directory at
listdir t path returns the names of files and subdirectories within the directory
write t path offset data writes
offset in file
path on filesystem
path contains directories that do not exist,
write will attempt to create them. If
path already exists,
write will overwrite existing information starting at