Sorting files

Zipper114 machowsk1 at attbi.com
Sun Apr 27 19:40:17 EDT 2003


I'm a bit of a noob when it comes to Python, so this might seem a bit
trivial, but.....

How can I get the listing of files of a particular type in a directory,
sorted by date? For example, I using the following call to get all the
JPEG's in a dir:

Images = glob.glob1(MyPath+"\\images", "*.jpg")


I want to do just this, but have them sorted by date. Any ideas?






More information about the Python-list mailing list