(path)
| 66 | |
| 67 | |
| 68 | def sha256_file(path): |
| 69 | digest = hashlib.sha256() |
| 70 | with path.open("rb") as stream: |
| 71 | for block in iter(lambda: stream.read(1024 * 1024), b""): |
| 72 | digest.update(block) |
| 73 | return digest.hexdigest() |
| 74 | |
| 75 | |
| 76 | def lock_status(path, record_lock): |
no test coverage detected