mirror of
https://github.com/xzb23/mods_unified_management.git
synced 2026-11-22 01:04:37 +08:00
15 lines
314 B
Python
15 lines
314 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_paths: dict[tuple[str, str], str] = {}
|