Sort files by date

fargo fargo_01 at hotmail.com
Tue Jul 12 05:50:42 EDT 2005


Hi.

I'm looking for some way to sort files by date.

I'm usin glob module to list a directiry, but files are sorted by name.

 >>> import glob
 >>> path = "./"
 >>> for ScannedFile in glob.glob(path):
...     print ScannedFile

I googled my problem, but did not find any solution, neither in this 
newsgroup.

Can anyone help me ?

Thanks



More information about the Python-list mailing list