import fnmatch


def filter_helper(file_path, ignore_filters):
    """ Returns True if file path matches any of the filters in 'ignores', ignores is a
    list of unix wildcards, for example '/path/to/file' or '*.swp' """
    return next((True for i in ignore_filters if fnmatch.fnmatch(file_path, i)), False)