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

Function pathMatchesSHA256

pkg/go/cmd/codebase-memory-mcp/main.go:1587–1593  ·  view source on GitHub ↗
(path string, expected [sha256.Size]byte)

Source from the content-addressed store, hash-verified

1585}
1586
1587func pathMatchesSHA256(path string, expected [sha256.Size]byte) bool {
1588 if !regularRuntimeFile(path) {
1589 return false
1590 }
1591 actual, err := fileSHA256(path)
1592 return err == nil && actual == expected
1593}
1594
1595func runtimeSetLockToken() (string, error) {
1596 raw := make([]byte, runtimeSetLockTokenSize)

Callers 3

cleanupRuntimeBackupFunction · 0.85
reconcileRuntimeBackupsFunction · 0.85

Calls 2

regularRuntimeFileFunction · 0.85
fileSHA256Function · 0.85

Tested by

no test coverage detected