package irmin

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

File-system abstraction.

val getcwd : unit -> string Lwt.t

Return the current directory.

val mkdir : string -> unit Lwt.t

Create a directory.

val remove : string -> unit Lwt.t

Remove a file or directory (even if non-empty).

val rec_files : string -> string list Lwt.t

rec_files dir is the list of files recursively present in dir and all of its sub-directories. Return filenames prefixed by dir.

val read_file : string -> Cstruct.t Lwt.t

Read the contents of a file using mmap.

val write_file : string -> ?temp_dir:string -> Cstruct.t -> unit Lwt.t

Write some contents to a new file.

OCaml

Innovation. Community. Security.