Last active
August 29, 2015 14:02
-
-
Save worldofchris/68d2ab941bf173e236bf to your computer and use it in GitHub Desktop.
Grab the names of all the files on Graham's dodgy hard disc.
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
# Grab the names of all Graham's files | |
import os | |
import sys | |
path = '.' | |
for dir in os.listdir(path): | |
if dir[0] > sys.argv[1]: | |
for dirpath, dirnames, files in os.walk(dir): | |
for f in files: | |
print dirpath + '/' + f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment