glob_overlaps(a: utf8, b: utf8) → bool
Category: [paths](builtinspaths)_
Whether two glob patterns can match a common path. Concrete paths are patterns too, so this subsumes glob_match for overlap gates. Trailing / means the whole subtree. Conservative: exotic negated-class pairings may report true when no shared path exists, never false when one does.
| Parameter | Type | Description | Remarks |
|---|---|---|---|
| a | utf8 | The first glob pattern (or concrete path). | — |
| b | utf8 | The second glob pattern (or concrete path). | — |
| returns | bool | true if some path is matched by both patterns. | — |
wcl
glob_overlaps("src/", "src/*.rs") // the subtree owns every .rs directly under src → true