(path: Path)
| 76 | |
| 77 | |
| 78 | def sha256_file(path: Path) -> str: |
| 79 | h = hashlib.sha256() |
| 80 | with path.open("rb") as f: |
| 81 | for block in iter(lambda: f.read(CHUNK), b""): |
| 82 | h.update(block) |
| 83 | return h.hexdigest() |
| 84 | |
| 85 | |
| 86 | def hash_zip_contents(zip_path: Path) -> list[dict]: |
no test coverage detected