MCPcopy Create free account
hub / github.com/arctic-cli/interface / symlinkBinary

Function symlinkBinary

packages/arctic/script/postinstall.mjs:88–98  ·  view source on GitHub ↗
(sourcePath, binaryName)

Source from the content-addressed store, hash-verified

86}
87
88function symlinkBinary(sourcePath, binaryName) {
89 const { targetPath } = prepareBinDirectory(binaryName)
90
91 fs.symlinkSync(sourcePath, targetPath)
92 console.log(`arctic binary symlinked: ${targetPath} -> ${sourcePath}`)
93
94 // Verify the file exists after operation
95 if (!fs.existsSync(targetPath)) {
96 throw new Error(`Failed to symlink binary to ${targetPath}`)
97 }
98}
99
100async function main() {
101 try {

Callers 1

mainFunction · 0.85

Calls 2

prepareBinDirectoryFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected