package core_extended

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Find_files.OptionsSource

Sourcetype error_handler =
  1. | Ignore
  2. | Print
  3. | Raise
  4. | Handle_with of Core.Filename.t -> exn -> unit
Sourcetype 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.

    *)
}
Sourceval default : t
Sourceval ignore_errors : t