MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / sha256_file

Function sha256_file

tests/test_daemon_smoke.py:68–73  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

66
67
68def 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
76def lock_status(path, record_lock):

Callers 2

mainFunction · 0.70

Calls 3

openMethod · 0.80
updateMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected