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.14.0.tar.gz
sha256=a7bf672f617891b10e405f1edb1c2ddc1db9e5b3169bd278bbb75b84d57d23ce
md5=00eb9b3ed6b0b02f74a2cf01e4d5827f

doc/core_extended.find_files/Find_files/index.html

Module Find_filesSource

Unix like find.

Sourcetype t
Sourcetype file_info = string * Core.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.