Conex_ioSourceIO operations
Conex relies on providers to read data from and write data to. Each access consists of a path used as key. Only basic file types are supported (no symbolic links).
type t = {basedir : string;description : string;file_type : Conex_utils.path -> (Conex_utils.file_type, string) result;read : Conex_utils.path -> (string, string) result;write : Conex_utils.path -> string -> (unit, string) result;read_dir : Conex_utils.path -> (Conex_utils.item list, string) result;exists : Conex_utils.path -> bool;}A provider contains its base directory, a description, and read/write/exist functionality. TODO: define this as a module type.
pp t is a pretty printer for t.
type r_err = [ | `NotFound of Conex_resource.typ * Conex_resource.name| `ParseError of Conex_resource.typ * Conex_resource.name * string| `NameMismatch of Conex_resource.typ * Conex_resource.name * Conex_resource.name| `InvalidPath of Conex_resource.name * Conex_utils.path ]The variant of read and parse errors.
pp_r_err is a pretty printer for r_err.