package conex
Establish trust in community repositories
Install
Dune Dependency
Authors
Maintainers
Sources
conex-0.10.0.tbz
sha256=536163045d3624009c4a2ec678a1b531be9485db233f5db43613b3809180a1a9
md5=39cdb4e3a550703e61b2f56d20323fdd
doc/conex/Conex_io/index.html
Module Conex_io
Source
IO 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).
IO provider
Source
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
.
Reading of resource files
Source
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
.
Source
val read_root :
t ->
Conex_resource.name ->
(Conex_resource.Root.t * string list, [> r_err ]) result
Source
val read_targets :
t ->
Conex_resource.Root.t ->
bool ->
Conex_resource.identifier ->
(Conex_resource.Targets.t * string list, [> r_err ]) result
Source
val write_targets :
t ->
Conex_resource.Root.t ->
Conex_resource.Targets.t ->
(unit, string) result
Source
val compute_checksum :
?prefix:Conex_utils.path ->
t ->
bool ->
(string -> Conex_resource.Digest.t) ->
Conex_utils.path ->
(Conex_resource.Target.t list, string) result
Source
val compute_checksum_tree :
?prefix:Conex_utils.path ->
t ->
(string -> Conex_resource.Digest.t) ->
((Conex_resource.Digest.t * Conex_utils.Uint.t) Conex_utils.Tree.t, string)
result
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page