Skip to main content

glob_matches

Function glob_matches 

Source
pub fn glob_matches(pattern: &str, name: &str) -> bool
Expand description

Whether name (folder levels joined by /) matches the glob: * and ? stay in one level, ** crosses any number. Table-driven, so the work is the pattern’s length times the name’s and never more, whatever the pattern.