Skip to content

Entries published on January 3, 2009

1 entry published on this date. See also: all entries published in January 2009, full archive.

Oldest files meme

Doug Hellmann has brought a meme to my attention, and I’d be remiss in my duties if I didn’t act upon it.

Here’s how it’s supposed to work. Save a copy of this Python script, say as a file named

#!/usr/bin/env python
"""Print last-modified times of files beneath '.', oldest first."""
import os, os.path, time
paths = ( os.path.join(b,f)
                    for (b,ds,fs) in os.walk('.')
                    for f in fs )
for mtime, path in sorted( ( …

Entry published January 3, 2009. Read full entry.