Peter Hansen wrote:
Kent Johnson wrote:
import path
files = path.path(pathToSearch).walkfiles(filename)
A minor enhancement (IMHO) (though I certainly agree with Kent's
recommendation here): since there is nothing else of interest in the
path module, it seems to be a fairly common idiom
Shane wrote:
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
Kent Johnson wrote:
I always use Jason Orendorff's path module for this kind of stuff. It's
way easier to use than os.whatever:
import path
files = path.path(pathToSearch).walkfiles(filename)
A minor enhancement (IMHO) (though I certainly agree with Kent's
recommendation here): since