Juggernaut.Plan.Glob (Juggernaut v0.4.0)

Copy Markdown View Source

Path globs as Path.wildcard/2 reads them, matched against a relative path without touching the file system: ** matches any number of directories, * and ? stay within one path segment, {a,b} is an alternation and [ab], [a,b] or [a-z] match one listed character (a comma is listed too, a - at either end is literal, nothing negates). A glob without wildcards matches the path itself and anything under it when it names a directory (lib/core).

Summary

Functions

Whether path (relative, /-separated) matches glob.

Functions

match?(glob, path)

@spec match?(String.t(), String.t()) :: boolean()

Whether path (relative, /-separated) matches glob.