package core_extended

  1. Overview
  2. Docs
Extra components that are not as closely vetted or as stable as Core

Install

Dune Dependency

Authors

Maintainers

Sources

core_extended-v0.15.0.tar.gz
sha256=875fcea0352c10e3ae6e96ddd86136ffd8e24cb19e56193463aa22c292c737d5

doc/core_extended.find_files/Find_files/index.html

Module Find_filesSource

Unix like find.

module Unix := Core_unix
Sourcetype t
Sourcetype file_info = string * Unix.stats
Sourcemodule Options : sig ... end
Sourceval create : ?options:Options.t -> string -> t

create ?options dir create a Find.t based in dir

Sourceval 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

Sourceval 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.

Sourceval iter : t -> f:(file_info -> unit) -> unit

iter t ~f calls f on every file in t

Sourceval fold : t -> init:'a -> f:('a -> file_info -> 'a) -> 'a

fold t ~init ~f folds f over the files in t

Sourceval to_list : t -> file_info list

to_list t returns all of the remaining files in t as a list in the order they would have been returned by subsequent calls to next

Sourceval find_all : ?options:Options.t -> string -> file_info list

find_all ?options dir short for to_list (create ?options dir)

OCaml

Innovation. Community. Security.