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

Function filesEqualSha256

pkg/npm/install.js:230–241  ·  view source on GitHub ↗
(leftPath, rightPath)

Source from the content-addressed store, hash-verified

228}
229
230function filesEqualSha256(leftPath, rightPath) {
231 try {
232 const left = fs.statSync(leftPath);
233 const right = fs.statSync(rightPath);
234 return left.isFile()
235 && right.isFile()
236 && left.size === right.size
237 && fileSha256(leftPath) === fileSha256(rightPath);
238 } catch (_) {
239 return false;
240 }
241}
242
243function sleepSync(milliseconds) {
244 Atomics.wait(SLEEP_WORD, 0, 0, milliseconds);

Callers 1

mainFunction · 0.85

Calls 1

fileSha256Function · 0.85

Tested by

no test coverage detected