I have list from os.walk. But I want to exclude some directories and files. I know how to do it with directories:
os.walk
for root, dirs, files in os.wa
And in one more way, because I just wrote this, and then stumbled upon this question:
files = filter(lambda file: not file.endswith('.txt'), files)