module type Specific_dir =sig..end
signature for searching files in a specific directory.
val set : Filepath.Normalized.t -> unitSets the plugin <specific-dir> directory (without creating it).
val get : unit -> Filepath.Normalized.tval is_set : unit -> boolval get_dir : ?mode:[ `Create_path | `Must_exist | `Normalize_only ] ->
string -> Filepath.Normalized.tget_dir ?mode p returns a (local) path p, i.e. relative to the plugin
<specific-dir> directory, of a sub-directory of the plugin <specific-dir>
directory.
mode : determines how to handle the resulting path:Normalize_only just normalizes the resulting path (default).Create_path creates the resulting path, if does not exist.Must_exist aborts if the resulting path does not exist.val get_file : ?mode:[ `Create_path | `Must_exist | `Normalize_only ] ->
string -> Filepath.Normalized.tget_file ?mode p returns a (local) path p, i.e. relative to the
plugin <specific-dir> directory, of a file in the plugin <specific-dir>
directory.
mode : determines how to handle the resulting path:Normalize_only just normalizes the resulting path (default).Create_path creates the dirname of resulting path, if does not exist.Must_exist aborts if the resulting path does not exist.