Module Find_files
Unix like find
.
type t
type file_info
= string * Core.Unix.stats
module Options : sig ... end
val next : t -> file_info option
next t
return the next file from the collection of valid files in t or None if no more files remain
val close : t -> unit
close t
drops all the resources associated with t. It is a mistake to attempt to use t again. Any Find.t will be automatically closed after the last file is read by any means.
val fold : t -> init:'a -> f:('a -> file_info -> 'a) -> 'a
fold t ~init ~f
folds f over the files in t