Created
May 3, 2013 14:26
-
-
Save LuRsT/5509426 to your computer and use it in GitHub Desktop.
Get files if their size is bellow 1K
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 | |
for dirpath, dirnames, filenames in os.walk('.'): | |
for f in filenames: | |
fp = os.path.join(dirpath, f) | |
size = os.path.getsize(fp) | |
if size < 1024: | |
print f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment