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.
| Parameter | Type | Description | Remarks |
|---|---|---|---|
| pattern | utf8 | The glob pattern. | — |
| path | utf8 | The concrete path to test. | — |
| returns | bool | true if the path matches the pattern. | — |
wcl
glob_match("src/*.rs", "src/main.rs") // one segment, .rs extension → true