searching for files on Windows with Python

Shane yeahright at redshifted.net
Thu Nov 17 08:35:25 EST 2005


I've been giving Google a good workout with no luck. I would like to be able to search a Windows filesystem for filenames, returning a list off absolute paths to the found files, something like:

def findFiles(filename, pathToSearch):
     ...
     ...
     return foundFileNames

Is the os module where I should start?

Thanks,

Shane



More information about the Python-list mailing list