mirror of
https://github.com/xzb23/check_duplicate_files.git
synced 2026-11-22 09:14:39 +08:00
只打印size>10KiB的重复文件 and 打印文件大小
This commit is contained in:
2 files changed
+5
-1
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
import sys
|
||||
import hashlib
|
||||
import typing
|
||||
import collections
|
||||
@@ -22,7 +22,10 @@ def hash_files_from_glist(algorithm: function):
|
||||
def print_info():
|
||||
for t in runing_data.hash_to_files:
|
||||
if len(runing_data.hash_to_files[t]) > 1:
|
||||
print(t)
|
||||
st_size = os.stat(runing_data.hash_to_files[t][0]).st_size
|
||||
if st_size <= 10240:
|
||||
continue
|
||||
print(t, f"size: {st_size} Byte")
|
||||
for fp in runing_data.hash_to_files[t]:
|
||||
print("\t", fp)
|
||||
print()
|
||||
|
||||
Reference in new issue
Block a user