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

Function removeOwnedPublishedBinary

pkg/npm/install.js:362–370  ·  view source on GitHub ↗
(destDir, publishedDigests)

Source from the content-addressed store, hash-verified

360}
361
362function removeOwnedPublishedBinary(destDir, publishedDigests) {
363 for (const name of [WINDOWS_BINARY_NAME]) {
364 const digest = publishedDigests.get(name);
365 const target = path.join(destDir, name);
366 if (digest && pathMatchesDigest(target, digest)) {
367 try { fs.unlinkSync(target); } catch (_) { /* recovery continues below */ }
368 }
369 }
370}
371
372function restoreBinaryBackups(destDir, backups) {
373 for (const name of [WINDOWS_BINARY_NAME]) {

Callers 1

Calls 1

pathMatchesDigestFunction · 0.85

Tested by

no test coverage detected