(path: Path)
| 88 | |
| 89 | |
| 90 | def _sha256_file(path: Path) -> str: |
| 91 | h = hashlib.sha256() |
| 92 | with open(path, "rb") as fh: |
| 93 | for chunk in iter(lambda: fh.read(8192), b""): |
| 94 | h.update(chunk) |
| 95 | return h.hexdigest() |
| 96 | |
| 97 | |
| 98 | def _strip_extended_length_prefix(path: Path) -> Path: |
no test coverage detected