Skip to content

Instantly share code, notes, and snippets.

@worldofchris
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save worldofchris/68d2ab941bf173e236bf to your computer and use it in GitHub Desktop.
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.
# 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