Created
April 23, 2013 18:32
-
-
Save ojacobson/5446141 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> files = [f for f in os.listdir("/Users/owen/Desktop") if os.path.isfile(os.path.join('/Users/owen/Desktop', f))] | |
>>> files.sort(key=lambda f: os.path.getmtime(os.path.join('/Users/owen/Desktop', f))) | |
>>> files | |
['.localized', 'para.png', 'Alarming Username Stuff.sql', "Diagram cribbed from Valve's new hire manual.png", 'Distant Shore combat musings.txt', '.fl11DB937D', 'evolve-surveys.md', 'why-services.md', 'what tables have what engines and keys.txt', 'events_archive projection.png', 'mlfw281_thumb-rainbow_dash_uhh_ok.png', 'gametime.java', 'Screen Shot 2013-02-25 at 1.28.33 PM.png', 'Support Team - 28 Feb 2013 - Stupid Monochrome.jpg', 'Support Team - 28 Feb 2013.jpg', 'replication-problems.sql', 'eye_51253c8b9606ee7d424bfe5a.jpg', 'Timbo.jpg', 'Timbo (1).jpg', 'Timbo 2.jpg', 'Timbo 2 Colour.jpg', 'IMG_0072.jpg', 'IMG_0030 - Version 2.jpg', 'IMG_5289.jpg', 'IMG_0066.jpg', 'IMG_0030.jpg', 'IMG_5339.jpg', 'checksum-results.txt', 'checksum-results.2.txt', 'checksum-results.3.txt', 'Screen Shot 2013-03-20 at 4.37.07 PM.png', 'IMG_0146.jpg', 'Dodgy Events Archive Projections (Mar 27 2013).pdf', 'Dodgy Events Archive projections.numbers', 'axon2-migrations.sql', 'replication commands.txt', 'checksum-results.apr-17.txt.gz', 'users.txt', 'IMG_5622.jpg', '.DS_Store'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment