path_matching
Matching files and patterns.
Functions¶
matches_any_glob
¶
matches_any_glob(
path: Union[str, Path], patterns: List[str]
) -> bool
Does the path match any of the glob patterns?
| PARAMETER | DESCRIPTION |
|---|---|
path
|
Path to test
TYPE:
|
patterns
|
A list of glob patterns
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
bool
|
|
rel_fnmatch
¶
rel_fnmatch(name: str, pat: str) -> bool
Force a relative match of the pattern by prefixing a *.