mirror of
https://github.com/xzb23/check_duplicate_files.git
synced 2026-11-22 01:04:40 +08:00
14 lines
346 B
Python
14 lines
346 B
Python
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) |