Skip to content

Commit 3b6274b

Browse files
author
guozhen3
committed
top_big_files
1 parent 7673794 commit 3b6274b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/top_big_files.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from collections import defaultdict
2+
d = defaultdict(list)
3+
for root, dirs, files in os.walk('E:\guozhen3\08LOL\JDLOL\fengbi\jdlol'):
4+
for file in files:
5+
abs_path_file = os.path.join(root, file)
6+
file_size = os.path.getsize(abs_path_file)
7+
d[abs_path_file].append(file_size)

0 commit comments

Comments
 (0)