module

Bakelite::Glob

Advanced pattern matching and globbing utilities supporting recursive wildcards, extensions, directory boundaries, and negative pattern exclusions (!pattern).

Class methods

match?(path : String, patterns : Array(String) = ["**/*"], excludes : Array(String) = [] of String) : Bool

Evaluates if a relative file path matches the given include and exclude rules, including negative patterns (e.g. "!src/main.cr").

Source
matches_pattern?(path : String, pattern : String) : Bool

Tests a single path against a single glob pattern

Source