fluentfs.paths.matches.matches_regex¶
- fluentfs.paths.matches.matches_regex(path: str, regex: Union[str, List[str]]) bool ¶
Check whether a path matches one of the given regular expressions.
- Parameters:
path – The given path.
regex – Either a single regular expression or a list of regular expressions.
- Returns:
True, if the path matches one of the regular expressions, False otherwise.