I have a list of strings and I would like to print out any that are not present within a file in a directory. (I don't want to check the headers)
I understand how to loop through the list, but have been unable to find out how to search within all files of a directory.
Here's what I've got so far:
import fnmatch import os matches =  for root, dirnames, filenames in os.walk('BrowserClient'): for filename in fnmatch.filter(filenames, 'file.png'): print filename
This only searches filenames and I want to instead search through every file in the directory and sub directory.