Module Os.Dir

val exists : Fpath.t -> (bool, string) result
val must_exist : Fpath.t -> (unit, string) result
val create : ?mode:int -> make_path:bool -> Fpath.t -> (bool, string) result
val fold : ?rel:bool -> ?dotfiles:bool -> ?follow_symlinks:bool -> ?prune:(Unix.stats -> string -> Fpath.t -> 'a -> bool) -> recurse:bool -> (Unix.stats -> string -> Fpath.t -> 'a -> 'a) -> Fpath.t -> 'a -> ('a, string) result
val fold_files : ?rel:bool -> ?dotfiles:bool -> ?follow_symlinks:bool -> ?prune:(Unix.stats -> string -> Fpath.t -> 'a -> bool) -> recurse:bool -> (Unix.stats -> string -> Fpath.t -> 'a -> 'a) -> Fpath.t -> 'a -> ('a, string) result
val fold_dirs : ?rel:bool -> ?dotfiles:bool -> ?follow_symlinks:bool -> ?prune:(Unix.stats -> string -> Fpath.t -> 'a -> bool) -> recurse:bool -> (Unix.stats -> string -> Fpath.t -> 'a -> 'a) -> Fpath.t -> 'a -> ('a, string) result
val path_list : Unix.stats -> string -> Fpath.t -> Fpath.t list -> Fpath.t list
val copy : ?rel:bool -> ?atomic:bool -> ?follow_symlinks:bool -> ?prune:(Unix.stats -> string -> Fpath.t -> bool) -> make_path:bool -> recurse:bool -> src:Fpath.t -> Fpath.t -> (unit, string) result
val cwd : unit -> (Fpath.t, string) result
val set_cwd : Fpath.t -> (unit, string) result
val with_cwd : Fpath.t -> (unit -> 'a) -> ('a, string) result
val default_tmp : unit -> Fpath.t
val set_default_tmp : Fpath.t -> unit
val with_tmp : ?mode:int -> ?make_path:bool -> ?dir:Fpath.t -> ?name:Path.tmp_name -> (Fpath.t -> 'a) -> ('a, string) result
val tmp : ?mode:int -> ?make_path:bool -> ?dir:Fpath.t -> ?name:Path.tmp_name -> unit -> (Fpath.t, string) result
val user : unit -> (Fpath.t, string) result
val config : unit -> (Fpath.t, string) result
val data : unit -> (Fpath.t, string) result
val cache : unit -> (Fpath.t, string) result
val runtime : unit -> (Fpath.t, string) result