get the latest file in a directory

Hank soundwave56 at yahoo.ca
Wed Oct 29 16:21:20 EST 2003


Hi, 

I was wondering what is a quick way to find the latest(last modified
date) file from a directory.

Should I use win32file.GetFileTime and compare PyTime? I don't want to
create a PyHANDLE for every single file in the directory, not if
there's an easier way at least.

Thanks




More information about the Python-list mailing list