Return hash digest for path.
(path: Path)
| 86 | |
| 87 | @staticmethod |
| 88 | def hash_digest(path: Path) -> str: |
| 89 | """Return hash digest for path.""" |
| 90 | |
| 91 | data = path.read_bytes() |
| 92 | return hashlib.sha256(data).hexdigest() |
| 93 | |
| 94 | @staticmethod |
| 95 | def get_file_data(path: Path) -> FileData: |
no outgoing calls