Get oldest folder

Tim Golden mail at timgolden.me.uk
Tue Apr 15 16:43:08 CEST 2008


jyoung79 at kc.rr.com 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:

<code>
import os

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

</code>

TJG



More information about the Python-list mailing list