package conex

  1. Overview
  2. Docs
Establishing trust in community repositories

Install

dune-project
 Dependency

Authors

Maintainers

Sources

conex-1.0.0.tbz
sha256=8ba730718cbf0a381f0bce3493d18bfea1823bee0f43e4cbddad222b66dc164f
sha512=a76787c46b7c867e41daba10989841e95e7a2ba142dd09ae078649fd60340fcef703f41ddffc67b9c899fb4a2956906a0c8f9d04db7da435ac502b19851a490a

doc/conex.unix/Conex_unix_persistency/index.html

Module Conex_unix_persistencySource

File system operations using Unix

Sourceval exists : string -> bool

exists is Sys.exists.

Sourceval mkdir : ?mode:int -> string -> (unit, string) result

mkdir ~mode name creates a directory name, or errors.

Sourceval remove : string -> (unit, string) result

remove is Sys.remove or error.

Sourceval rename : string -> string -> (unit, string) result

rename is Sys.rename or error.

Sourceval file_type : string -> (Conex_utils.file_type, string) result

file_type path is the file type of path or error.

Sourceval read_file : string -> (string, string) result

read_file path is the contents of path or error.

Sourceval write_file : ?mode:int -> string -> string -> (unit, string) result

write_file ~mode path data writes data under path or error.

Sourceval write_replace : ?mode:int -> string -> string -> (unit, string) result

write_replace ~mode path data writes data under path.tmp and renames path.tmp to path or error.

Sourceval collect_dir : string -> (string list, string) result

collect_dir path are the inhabitants of path or error.