Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
A read-only tree of files, directories and symlinks.
val read : t -> Datakit_client.Path.t -> Datakit_client.value result
read t path
is the contents of the object at the path
.
val stat : t -> Datakit_client.Path.t -> Datakit_client.stat option result
stat t path
is the metadata of the object at path
.
val exists : t -> Datakit_client.Path.t -> bool result
exists t path
is true
if stat t path
isn't None
.
val exists_file : t -> Datakit_client.Path.t -> bool result
exists_file t path
is similar to exists
but for files only.
val exists_dir : t -> Datakit_client.Path.t -> bool result
exists_dir t path
is similar to exists
but for directories only.
val read_file : t -> Datakit_client.Path.t -> Cstruct.t result
read_file t path
resolves path
to a file, or returns an error if it isn't a file.
val read_dir : t -> Datakit_client.Path.t -> string list result
read_dir t path
resolves path
to a directory, or returns an error if it isn't one.
val read_link : t -> Datakit_client.Path.t -> string result
read_link t path
resolves path
to a symlink, or returns an error if it isn't one.