(p: pathlib.Path)
| 125 | |
| 126 | |
| 127 | def hash_path(p: pathlib.Path): |
| 128 | h = hashlib.sha256() |
| 129 | |
| 130 | with p.open("rb") as fh: |
| 131 | while True: |
| 132 | chunk = fh.read(65536) |
| 133 | if not chunk: |
| 134 | break |
| 135 | |
| 136 | h.update(chunk) |
| 137 | |
| 138 | return h.hexdigest() |
| 139 | |
| 140 | |
| 141 | def get_target_support_file( |
no test coverage detected