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

v0.17.0.tar.gz
sha256=17de5f7cf59818d757bb0625c55f0afc84509122645b7782fb522ac98c3be446

doc/core_extended.find_files/Find_files/index.html

Module Find_filesSource

Unix like find.

module Unix := Core_unix
Sourcetype t
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.