searching for files on Windows with Python

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


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)

Michel Claveau

More information about the Python-list mailing list