Re: searching for files on Windows with Python

2005-11-19 Thread Kent Johnson
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

Re: searching for files on Windows with Python

2005-11-17 Thread Kent Johnson
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

Re: searching for files on Windows with Python

2005-11-17 Thread Peter Hansen
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