glob_match(pattern: utf8, path: utf8) → bool

Category: [paths](builtinspaths)_

Match one concrete path against a glob. * stays within a segment, ** spans segments, ? matches one character, [a-z] / [!x] are character classes. A trailing / on the pattern matches the whole subtree.

ParameterTypeDescriptionRemarks
patternutf8The glob pattern.
pathutf8The concrete path to test.
returnsbooltrue if the path matches the pattern.
wcl
glob_match("src/*.rs", "src/main.rs")   // one segment, .rs extension → true