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.

ParameterTypeDescriptionRemarks
autf8The first glob pattern (or concrete path).
butf8The second glob pattern (or concrete path).
returnsbooltrue if some path is matched by both patterns.
wcl
glob_overlaps("src/", "src/*.rs")   // the subtree owns every .rs directly under src → true