import fnmatch


def isIgnored(path, ignoreList):
    """Checks a filename against a list of ignored patterns."""
    for pattern in ignoreList:
        if fnmatch.fnmatch(path, pattern):
            return True
    return False