Process files in order

Khoa Nguyen khoa.coffee at gmail.com
Thu Jul 27 15:54:54 EDT 2006


Hi,

I have a requirement to process all files in a directory in
chronological order. The os.listdir() function, however, lists the
files in random order. Is there a similar function in Python that
allows me to specify the listing order (like ls -t for example)?

Thanks,
Khoa



More information about the Python-list mailing list