pub fn path_excluded(path: &str, patterns: &[String]) -> boolExpand description
Whether path matches any of patterns.
A foo/ pattern is a directory prefix. A *. pattern is a file-name
suffix, not a single extension: *.min.js matches ui/bundle.min.js the
same way *.lock matches Cargo.lock. Matching only the last dot segment
would leave every compound suffix inert, and a compound suffix is exactly
how generated files announce themselves. Anything else is a substring.