Module Fs.Directory

type t = directory
val dirname : t -> t
val basename : t -> t
val append : t -> t -> t
val contains : parentdir:t -> file -> bool
val compare : t -> t -> int
val mkdir_p : t -> unit
val of_file : file -> t
val of_string : string -> t
val to_string : t -> string
val to_fpath : t -> Fpath.t
val fold_files_rec : ?ext:string -> ('a -> file -> 'a) -> 'a -> t -> 'a

fold_files_rec_result ~ext f acc d recursively folds f over the files with extension matching ext (defaults to "") contained in d and its sub directories.

val fold_files_rec_result : ?ext:string -> ('a -> file -> ('a, Odoc_utils.msg) result) -> 'a -> t -> ('a, [> Odoc_utils.msg ]) result

fold_files_rec_result ~ext f acc d recursively folds f over the files with extension matching ext (defaults to "") contained in d and its sub directories. Stop as soon as f returns Error _.