mirror of
https://github.com/xzb23/check_duplicate_files.git
synced 2026-11-22 17:24:40 +08:00
基础功能完成
This commit is contained in:
6 files changed
+77
No files matched your search
@@ -0,0 +1,14 @@
|
||||
from _in_package import *
|
||||
|
||||
|
||||
class FileHashResult(typing.NamedTuple):
|
||||
filepath: str
|
||||
hash_value: str
|
||||
algorithm: str
|
||||
|
||||
|
||||
file_path_list: list[str] = []
|
||||
file_hash_results: list[FileHashResult] = []
|
||||
|
||||
# hash_to_files: { (hash_value, algorithm): [filepath, ...] }
|
||||
hash_to_files: dict[tuple[str, str], list[str]] = collections.defaultdict(list)
|
||||
Reference in new issue
Block a user