@staticmethod<EOL><INDENT>def _matches_patterns(path, patterns):<DEDENT>
for glob in patterns:<EOL><INDENT>try:<EOL><INDENT>if PurePath(path).match(glob):<EOL><INDENT>return True<EOL><DEDENT><DEDENT>except TypeError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return False<EOL>
Given a list of patterns, returns a if a path matches any pattern.