|
@ -1314,6 +1314,8 @@ def human(size): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_size(start_path='.'): |
|
|
def get_size(start_path='.'): |
|
|
|
|
|
if ek.ek(os.path.isfile, start_path): |
|
|
|
|
|
return ek.ek(os.path.getsize, start_path) |
|
|
total_size = 0 |
|
|
total_size = 0 |
|
|
for dirpath, dirnames, filenames in ek.ek(os.walk, start_path): |
|
|
for dirpath, dirnames, filenames in ek.ek(os.walk, start_path): |
|
|
for f in filenames: |
|
|
for f in filenames: |
|
|