Module OpamRepositoryRoot.Dir

Repository root implemented as a directory

type t
val of_dir : OpamTypes.dirname -> t
val to_dir : t -> OpamTypes.dirname
val to_string : t -> string
val quarantine : t -> t

quarantine dir returns a path to a temporary directory dedicated to the original repository root. The returned directory is not created and points to a statically known directory in the same parent directory as dir.

val with_tmp : (t -> 'a) -> 'a
val backup : inn:OpamTypes.dirname -> t -> t
val cwd : unit -> t
val exists : t -> bool
val remove : t -> unit
val move : src:t -> dst:t -> unit
val copy : src:t -> dst:t -> unit
val copy_except_vcs : src:t -> dst:t -> unit
val make_empty : t -> unit
val dirs : t -> OpamTypes.dirname list
val is_empty : t -> bool option
val dirname : t -> OpamTypes.dirname
module Op : sig ... end