import fnmatch


def _matches_any_wildcard(name, wildcards):
    """Checks whether the specified name matches any of a series of wildcards

    @param  name       Name that will be checked against the wildcards
    @param  wildcards  Wildcards of which at least one has to match the name
    @returns True if at least one wildcard matched the name, false otherwise"""

    for wildcard in wildcards:
        if fnmatch.fnmatch(name, wildcard):
            return True

    return False