Created
July 1, 2012 22:59
-
-
Save achagani/3029952 to your computer and use it in GitHub Desktop.
Python Script To Extract Files Files From Sub Directories
This file contains 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, shutil, glob | |
def copy_subdirectory_files (file_src, file_dst): | |
for file in os.listdir(file_src): | |
for font in glob.iglob(os.path.join(file_src, file, "*.ttf")): | |
print("Copying file: "+ font) | |
shutil.copy(os.path.join(file_src, file, font), file_dst) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment