Module Odoc_odoc__Fs.Directory
type t
= directory
val dirname : t -> t
val basename : t -> t
val append : t -> t -> t
val reach_from : dir:t -> string -> t
@raises
Invalid_arg _
ifparent/name
exists but is not a directory.
val mkdir_p : t -> unit
val of_string : string -> t
val to_string : t -> string
val fold_files_rec_result : ?ext:string -> ('a -> file -> ('a, Odoc_odoc.Or_error.msg) Odoc_odoc.Or_error.result) -> 'a -> t -> ('a, [> Odoc_odoc.Or_error.msg ]) Odoc_odoc.Or_error.result
fold_files_rec_result ~ext f acc d
recursively foldsf
over the files with extension matchingext
(defaults to""
) contained ind
and its sub directories. Stop as soon asf
returnsError _
.