Page
Library
Module
Module type
Parameter
Class
Class type
Source
Fat_fs.MakeSourcemodule B : Mirage_block_lwt.Stype write_error = [ | error| Mirage_fs.write_error| `Directory_not_empty| `Block_write of B.write_error| `Exn of exn ]include Mirage_fs_lwt.S
with type error := error
and type write_error := write_errorpp_write_error is the pretty-printer for write errors.
include Mirage_device.S with type 'a io = 'a Lwt.tThe type representing the internal state of the device
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. If path contains directories that do not yet exist, create will attempt to create them.
mkdir t path creates an empty directory at path. If path contains intermediate directories that do not yet exist, mkdir will create them. If a directory already exists at path, mkdir returns `Ok () and takes no action.
destroy t path removes a path (which may be a file or an empty directory) on filesystem t.
stat t path returns information about file or directory at path.
listdir t path returns the names of files and subdirectories within the directory path.
write t path offset data writes data at offset in file path on filesystem t.
If path contains directories that do not exist, write will attempt to create them. If path already exists, write will overwrite existing information starting at off.