Function fast_glob::glob_match
source · pub fn glob_match(glob: &str, path: &str) -> bool
Expand description
Performs glob pattern matching for a simple glob pattern.
Returns true
if glob
matches path
, false
otherwise.
§Example
use fast_glob::glob_match;
let glob = "**/*.txt";
let path = "file.txt";
assert!(glob_match(glob, path));