baml.glob.new

Compiles a glob `pattern` and returns a `Glob` object for scanning or matching.

Reference version

Signature

function baml.glob.new(pattern: string) -> baml.glob.Glob throws baml.errors.ParseError

Compiles a glob pattern and returns a Glob object for scanning or matching.

Throws

  • ParseError if pattern is not a well-formed glob.

Source:<builtin>/baml/ns_glob/glob.bamlbytes 1392–1485