def filtered_files(base, excludes=()):
excludes = set(base + "/" + e for e in excludes)
for root, _dirs, files in os.walk(base):
for filename in files:
full = root + "/" + filename
After Change
def filtered_files(base, unfiltered_files_filename):
with open(unfiltered_files_filename) as f:
lines = [line.rstrip()for line in f]
// Skip comments and empty lines to get list of files we DON"T want to
// filter out; this is definitely complicated
unfiltered = set(