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 com
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
Hi!
But fnmatch (or glob) is unix-like. With few error in windows (sample ?
trye '*.' )
Test this code rather:
import os
l=os.popen4('dir c:\\python\\*.pyw /S /B')[1].readlines()
print ''.join(l)
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/pytho
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 foundF
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:
maybe some variation of
http://article.gmane.org/gmane.comp.python.general/
Shane schrieb:
> 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 f
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