import fnmatch


def _matches_one_of(file, globs):
    """ check if file one of the provided globs """
    for glob in globs:
        if fnmatch.fnmatch(file, glob):
            return True
    return False