'Return True or False depending on whether the ``path`` should be
ignored (if it matches any pattern in ``ignore_patterns``).'

def is_ignored(self, path):

    for pattern in self.ignore_patterns:
        if fnmatch.fnmatchcase(path, pattern):
            return True
    return False
