Created
June 11, 2010 04:55
-
-
Save anonymous/434058 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
import os,fnmatch; | |
rootDir = "."; | |
fileGlob = "*.txt" | |
for arg in rootDir: | |
for dirpath, dirnames, filenames in os.walk(arg): | |
for filename in [f for f in filenames if fnmatch.fnmatch(f,fileGlob)]: | |
fullFileName = os.path.join(dirpath, filename); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment