Guest User

Untitled

a guest
May 23rd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. import os
  2. from os.path import getsize, join
  3.  
  4. # '.' это поиск в текущей папке
  5. for root, dirs, files in os.walk('.'):
  6. print(root, sum(getsize(join(root, name)) for name in files))
Add Comment
Please, Sign In to add comment