package core_extended

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type error_handler =
  1. | Ignore
  2. | Print
  3. | Raise
  4. | Handle_with of Core.Filename.t -> exn -> unit
type t = {
  1. min_depth : int;
    (*

    Equivalent to the -minDepth flag in unix find.

    *)
  2. max_depth : int option;
    (*

    Equivalent to the -maxDepth flag in unix find.

    *)
  3. on_open_errors : error_handler;
    (*

    Applied to errors raised when calling Unix.opendir on a file.

    *)
  4. on_stat_errors : error_handler;
    (*

    Applied to errors raised when calling Unix.stat or Unix.lstat on a file.

    *)
  5. filter : (file_info -> bool) option;
    (*

    Whether to include a given file or directory in output. For directories, this does not affect whether files under the directory are visited.

    *)
  6. skip_dir : (file_info -> bool) option;
    (*

    Whether to visit the files under a given directory.

    *)
  7. relative_paths : bool;
    (*

    Whether to return filepaths as relative to the base dir.

    *)
}
val default : t
val ignore_errors : t
OCaml

Innovation. Community. Security.