Created
January 30, 2014 22:37
-
-
Save rjzak/8721563 to your computer and use it in GitHub Desktop.
Ends and ends
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
import os | |
import random | |
import string | |
def recursiveDirectoryContents(dir): | |
for root, dirs, files in os.walk(dir): | |
for file in files: | |
yield os.path.join(root, file) | |
def randomString(length=10): | |
return ''.join([random.choice(string.ascii_letters + string.digits) for n in xrange(length)]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment