module
Bakelite::Glob
Overview
Advanced pattern matching and globbing utilities supporting recursive wildcards, extensions, directory boundaries, and negative pattern exclusions (!pattern).
Defined in:
bakelite/glob.crClass Method Summary
-
.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.
-
.matches_pattern?(path : String, pattern : String) : Bool
Tests a single path against a single glob pattern
Class Method Detail
def self.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").
def self.matches_pattern?(path : String, pattern : String) : Bool
#
Tests a single path against a single glob pattern