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

Function requireRegularArchive

pkg/npm/install.js:129–133  ·  view source on GitHub ↗
(archivePath)

Source from the content-addressed store, hash-verified

127}
128
129function requireRegularArchive(archivePath) {
130 if (!fs.statSync(archivePath).isFile()) {
131 throw new Error('release archive is not a regular file');
132 }
133}
134
135// Streams one member through `tar -xzOf` into a file this call creates. The
136// file is removed only when this call created it: a pre-existing target

Callers 2

extractExactTarArchiveFunction · 0.70
extractZipOnWindowsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected