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

Function pathMatchesSHA256

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

Source from the content-addressed store, hash-verified

1558}
1559
1560func pathMatchesSHA256(path string, expected [sha256.Size]byte) bool {
1561 if !regularRuntimeFile(path) {
1562 return false
1563 }
1564 actual, err := fileSHA256(path)
1565 return err == nil && actual == expected
1566}
1567
1568func runtimeSetLockToken() (string, error) {
1569 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