searching for files on Windows with Python

Do Re Mi chel La Si Do enleverlesO.OmcO at OmclaveauO.com
Thu Nov 17 16:23:51 EST 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