mirror of
https://github.com/xzb23/check_duplicate_files.git
synced 2026-11-22 09:14:39 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c63609c901
|
||
|
|
f7eb6d82a7
|
||
|
|
ea0362de5e
|
||
|
|
e3bed74050
|
||
|
|
7da8af6da4
|
No files matched your search
@@ -12,6 +12,7 @@
|
||||
`git clone https://github.com/xzb23/check_duplicate_files.git`
|
||||
2. `python app.py [-P] [--fsize]`
|
||||
## 可执行文件(仅Windows提供)
|
||||
### 使用方法
|
||||
1. 下载程序
|
||||
2. 添加环境变量(可选)
|
||||
3. 在终端中执行\
|
||||
@@ -27,4 +28,5 @@
|
||||
# 更新计划
|
||||
- [ ] GUI界面(Windows)
|
||||
- [ ] 支持一键清理/整理重复文件
|
||||
- [ ] 支持对结果列表重排序
|
||||
- [ ] 支持对结果列表重排序
|
||||
- [ ] I18n
|
||||
@@ -20,7 +20,7 @@ def hash_files_from_glist(algorithm: function):
|
||||
for f_path in runing_data.file_path_list:
|
||||
with open(f_path, "rb") as f:
|
||||
f_hash = hashlib.file_digest(f, algorithm)
|
||||
runing_data.file_hash_results.append(runing_data.FileHashResult(f_path, f_hash.hexdigest(), algorithm.__name__))
|
||||
# runing_data.file_hash_results.append(runing_data.FileHashResult(f_path, f_hash.hexdigest(), algorithm.__name__))
|
||||
runing_data.hash_to_files[(f_hash.hexdigest(), algorithm.__name__)].append(f_path)
|
||||
i += 1
|
||||
if i % config.wait_c == 0:
|
||||
@@ -51,7 +51,7 @@ def print_info(hash_to_files_list: list = runing_data.hash_to_files):
|
||||
print("\t", fp)
|
||||
print()
|
||||
print(f"重复部分占用/总占用:\t{(size_total-size_if_one)//1024}KiB / {size_total//1024}KiB")
|
||||
print(f"占用大于 {config.flag_size} Byte 的文件中,重复部分占用/总占用:\t{(print_size_total-print_size_if_one)//1024}Kib / {print_size_total//1024}KiB")
|
||||
print(f"占用大于 {config.flag_size} Byte 的文件中,重复部分占用/总占用:\t{(print_size_total-print_size_if_one)//1024}KiB / {print_size_total//1024}KiB")
|
||||
|
||||
|
||||
def reg_opts():
|
||||
|
||||
Reference in new issue
Block a user