MCPcopy Create free account
hub / github.com/ResearAI/DeepScientist / writeExecutableScript

Function writeExecutableScript

bin/ds.js:1959–1963  ·  view source on GitHub ↗
(targetPath, content)

Source from the content-addressed store, hash-verified

1957}
1958
1959function writeExecutableScript(targetPath, content) {
1960 ensureDir(path.dirname(targetPath));
1961 fs.writeFileSync(targetPath, content, { encoding: 'utf8', mode: 0o755 });
1962 fs.chmodSync(targetPath, 0o755);
1963}
1964
1965function repairMigratedInstallWrappers(targetHome) {
1966 const installBinDir = path.join(targetHome, 'cli', 'bin');

Calls 2

dirnameMethod · 0.80
ensureDirFunction · 0.70

Tested by

no test coverage detected