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

Function removeOwnedPublishedBinary

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

Source from the content-addressed store, hash-verified

498}
499
500function removeOwnedPublishedBinary(destDir, publishedDigests) {
501 for (const name of [WINDOWS_BINARY_NAME]) {
502 const digest = publishedDigests.get(name);
503 const target = path.join(destDir, name);
504 if (digest && pathMatchesDigest(target, digest)) {
505 try { fs.unlinkSync(target); } catch (_) { /* recovery continues below */ }
506 }
507 }
508}
509
510function restoreBinaryBackups(destDir, backups) {
511 for (const name of [WINDOWS_BINARY_NAME]) {

Callers 1

Calls 2

pathMatchesDigestFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected