def METHOD_NAME(paths, filename_check):
    for path in paths:
        for dirpath, _dirnames, filenames in os.walk(path):
            # skip '.svn'
            if dirpath[0] in {".", b'.'}:
                continue
            for filename in filenames:
                if filename_check(filename):
                    yield os.path.join(dirpath, filename)