470,636 Members | 1,514 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,636 developers. It's quick & easy.

Re: Get oldest folder

jy******@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
Jun 27 '08 #1
0 597

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by totoringo2004 | last post: by
reply views Thread by | last post: by
reply views Thread by Tim Golden | last post: by
reply views Thread by | last post: by
1 post views Thread by Korara | last post: by
???
reply views Thread by Stoney L | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.