Skip to content

Instantly share code, notes, and snippets.

@terrycojones
Created January 16, 2013 20:35
Show Gist options
  • Save terrycojones/4550693 to your computer and use it in GitHub Desktop.
Save terrycojones/4550693 to your computer and use it in GitHub Desktop.
#!/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