Created
January 16, 2015 10:39
-
-
Save kskomori/feb6a92514054b8f366e to your computer and use it in GitHub Desktop.
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
# path 以下のファイル/ディレクトリ一覧を再帰的に探索 | |
import os, os.path | |
root_path = '/dir/' | |
for root, dirs, files in os.walk(root_path): | |
for file in files: | |
#print(os.path.join(root, file)) | |
if len(file.encode('utf-8')) > 40: | |
print(" {}".format(file)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment