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