Skip to content

Instantly share code, notes, and snippets.

@yinyin
Created December 11, 2013 19:10
Show Gist options
  • Save yinyin/7916502 to your computer and use it in GitHub Desktop.
Save yinyin/7916502 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import os
for root, dirs, files in os.walk("."):
print "---"
print "root=%r" % (root,)
print "dirs=%r" % (dirs,)
print "files=%r" % (files,)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment