package dune-glob

  1. Overview
  2. Docs

Module Dune_glob.V1Source

Simple glob support library.

Sourcetype t
Sourceval empty : t

A glob that matches nothing

Sourceval universal : t

A glob that matches anything (including the strings starting with a ".")

Sourceval test : t -> string -> bool

Tests if string matches the glob.

Sourceval to_string : t -> string

Returns textual representation of a glob.

Sourceval of_string : string -> t

Converts string to glob. Throws Invalid_argument exception if string is not a valid glob.

Sourceval of_string_result : string -> (t, int * string) Stdune.result
Sourceval to_dyn : t -> Dyn.t
Sourceval of_string_exn : Stdune.Loc.t -> string -> t
Sourceval compare : t -> t -> Stdune.Ordering.t
Sourceval hash : t -> int
Sourceval matching_extensions : Stdune.Filename.Extension.t list -> t

matching_extensions xs return a glob that will match any of the extensions in xs

OCaml

Innovation. Community. Security.