package git

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type error
type t
val exists : t -> Fpath.t -> (bool, error) result Lwt.t
val delete : t -> Fpath.t -> (unit, error) result Lwt.t
val move : t -> Fpath.t -> Fpath.t -> (unit, error) result Lwt.t

move should be be atomic

type 'a fd constraint 'a = [< `Read | `Write ]
val open_w : t -> Fpath.t -> ([ `Write ] fd, error) result Lwt.t
val open_r : t -> Fpath.t -> ([ `Read ] fd, error) result Lwt.t
val write : Cstruct.t -> ?off:int -> ?len:int -> [> `Write ] fd -> (int, error) result Lwt.t
val read : Cstruct.t -> ?off:int -> ?len:int -> [> `Read ] fd -> (int, error) result Lwt.t
val close : 'a fd -> (unit, error) result Lwt.t
OCaml

Innovation. Community. Security.