I'd like to be able to get the path to the oldest folder in whatever directoryBetter: I don't know. Alternative, certainly:
I'm currently in. Is there a simple way to go about this?
I'd like it to run on both OS X and Windows XP.
I found this example but was curious if there's a better way to do this?
<code>
import os, glob
PATH = "c:/python25/lib/site-packages"
print min ((f for f in glob.glob (os.path.join (PATH, "*")) if os.path.isdir (f)), key=os.path.getctime)
</code>
TJG