package conex

  1. Overview
  2. Docs
Establishing trust in community repositories

Install

Dune Dependency

Authors

Maintainers

Sources

conex-v0.11.1.tbz
sha256=997966693236d1ab2930ff8bb24cce175e88279b99aaacd39fa022d5e45dd3b1
sha512=af207a3e6f35c81745d36fa8759846ed7ac357e9d8dfe0a7f3e0918e2a7f709d48d21ff15d6ee7b399a72c52d9c920cea478b1c7d7ad0d693637983f6dcb8033

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.

OCaml

Innovation. Community. Security.