Skip to main content

glob_matches

Function glob_matches 

Source
pub fn glob_matches(pattern: &Pattern, relative: &Path) -> bool
Expand description

Match a glob against a workspace-relative path. */? do NOT cross / (so src/*.ts matches only direct children — ** is the recursive form, matching find/bash semantics); a bare pattern (e.g. *.rs) also matches the file name at any depth, giving the intuitive “all .rs files”.