Get oldest folder

Tim Golden mail at
Tue Apr 15 16:43:08 CEST 2008

jyoung79 at wrote:
> I'd like to be able to get the path to the oldest folder in whatever directory I'm currently in.  

And just because I'm feeling silly:

import os

print os.popen ("dir /b /ad /od /tc c:\python25\lib\site-packages").readline ()



More information about the Python-list mailing list