Skip to content

Instantly share code, notes, and snippets.

@niceaji
Created October 19, 2012 03:07
Show Gist options
  • Save niceaji/3916011 to your computer and use it in GitHub Desktop.
Save niceaji/3916011 to your computer and use it in GitHub Desktop.
python-디렉토리내 모든 파일읽기
#!/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