Created
January 16, 2013 20:35
-
-
Save terrycojones/4550693 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
#!/usr/bin/env python | |
from os import walk | |
for dirpath, dirnames, files in walk('.', topdown=False): | |
if not dirnames and not files: | |
print dirpath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment