searching for files on Windows with Python

Do Re Mi chel La Si Do enleverlesO.OmcO at OmclaveauO.com
Thu Nov 17 22:23:51 CET 2005


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






More information about the Python-list mailing list