Diary, commentary, reviews, snippets to preserve on-line
And the same again, only as a script, just because:
If there wasn't that comparison function to write, it'd be terser...
Changing fcompare to:fcompare = lambda x,y: cmp(os.path.getmtime(x), os.path.getmtime(y))makes it a two-liner...
Changing fcompare to:
ReplyDeletefcompare = lambda x,y: cmp(os.path.getmtime(x), os.path.getmtime(y))
makes it a two-liner...