Created
October 19, 2012 03:07
-
-
Save niceaji/3916011 to your computer and use it in GitHub Desktop.
python-디렉토리내 모든 파일읽기
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 | |
# -*- coding: utf-8 -*- | |
import os | |
for root, dirs, files in os.walk('folder/path'): | |
for fname in files: | |
full_fname = os.path.join(root, fname) | |
print full_fname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment