def pattern_matches(self, path):
        return fnmatch.fnmatch(path, self.pattern) or path == self.pattern
Return true if the given path matches the watch pattern
dataset/ETHPy150Open borntyping/spotter/spotter/watches.py/Watch.pattern_matches