fluentfs.paths.matches.matches_glob¶
- fluentfs.paths.matches.matches_glob(path: str, patterns: Union[str, List[str]]) bool ¶
Check whether a path matches some glob pattern(s).
Note that path is NOT maximally expanded to accommodate intuitive globbing of relative paths.
- Parameters:
path – The given path.
patterns – Either a single glob pattern or a list of glob patterns.
- Returns:
True, if the path matches one of the glob patterns, False otherwise.