pub fn pattern_match(name: &str, pattern: &str) -> Result<bool, Error>
Tests if a name matches a glob pattern.