Module Bos_os_dir

val uerror : Unix.error -> string
val exists : Fpath.t -> (bool, [> `Msg of string ]) result
val must_exist : Fpath.t -> (Fpath.t, [> `Msg of string ]) result
val delete : ?must_exist:bool -> ?recurse:bool -> Fpath.t -> (unit, [> `Msg of string ]) result
val create : ?path:bool -> ?mode:Unix.file_perm -> Fpath.t -> (bool, [> `Msg of string ]) result
val contents : ?dotfiles:bool -> ?rel:bool -> Fpath.t -> (Fpath.t list, [> `Msg of string ]) result
val fold_contents : ?err: (Fpath.t -> ('a, [ `Msg of string ]) result -> (unit, [ `Msg of string ]) result) -> ?dotfiles:bool -> ?elements: [< `Any | `Dirs | `Files | `Sat of Fpath.t -> (bool, [ `Msg of string ]) result Any ] -> ?traverse: [< `Any | `None | `Sat of Fpath.t -> (bool, [ `Msg of string ]) result Any ] -> (Fpath.t -> 'b -> 'b) -> 'b -> Fpath.t -> ('b, [> `Msg of string ]) result
val current : unit -> (Fpath.t, [> `Msg of string ]) result
val set_current : Fpath.t -> (unit, [> `Msg of string ]) result
val with_current : Fpath.t -> ('a -> 'b) -> 'a -> ('b, [> `Msg of string ]) result
type tmp_name_pat = (string -> string, Format.formatter, unit, string) format4
val delete_tmp : Fpath.t -> unit
val tmps : Fpath.set ref
val tmps_add : Fpath.path -> unit
val tmps_rem : Fpath.path -> unit
val delete_tmps : unit -> unit
val default_tmp_mode : int
val tmp : ?mode:Unix.file_perm -> ?dir:Fpath.t -> (string -> string, Format.formatter, unit, string) format4 -> (Fpath.t, [> `Msg of string ]) result
val with_tmp : ?mode:Unix.file_perm -> ?dir:Fpath.t -> (string -> string, Format.formatter, unit, string) format4 -> (Fpath.path -> 'a -> 'b) -> 'a -> ('b, [> `Msg of string ]) result
val default_tmp : unit -> Fpath.t
val set_default_tmp : Fpath.t -> unit
val user_from_passwd : Unix.passwd_entry -> (Fpath.t, [> `Msg of string ]) result
val user : unit -> (Fpath.t, [> `Msg of string ]) result
val expand_tilde : Fpath.t -> (Fpath.t, [> `Msg of string ]) result
val err_dir : string -> ('a, Format.formatter, unit, unit, unit, ('b, [> `Msg of string ]) result) format6 -> 'a
val fpath_of_env_var : string -> string -> (Fpath.t, [> `Msg of string ]) result option
val base_dir : string -> string -> string option -> (unit -> (Fpath.t, [> `Msg of string ] as 'a) result) -> (Fpath.t, 'a) result
val home_fallback : string -> Fpath.t -> (Fpath.t, [> `Msg of string ]) result
val config_dir : string
val config_var : string
val config_var_alt : string option
val config_fallback : unit -> (Fpath.t, [> `Msg of string ]) result
val config : unit -> (Fpath.t, [> `Msg of string ]) result
val data_dir : string
val data_var : string
val data_var_alt : string option
val data_fallback : unit -> (Fpath.t, [> `Msg of string ]) result
val data : unit -> (Fpath.t, [> `Msg of string ]) result
val cache_dir : string
val cache_var : string
val cache_var_alt : string option
val cache_fallback : unit -> (Fpath.t, [> `Msg of string ]) result
val cache : unit -> (Fpath.t, [> `Msg of string ]) result
val runtime_dir : string
val runtime_var : string
val runtime_var_alt : 'a option
val runtime_fallback : unit -> (Fpath.t, 'a) result
val runtime : unit -> (Fpath.t, [> `Msg of string ]) result
val state_dir : string
val state_var : string
val state_var_alt : 'a option
val state_fallback : unit -> (Fpath.t, [> `Msg of string ]) result
val state : unit -> (Fpath.t, [> `Msg of string ]) result