MCPcopy Index your code
hub / github.com/shelljs/shelljs / writeFileLockedDown

Function writeFileLockedDown

src/exec.js:70–75  ·  view source on GitHub ↗
(filePath, data)

Source from the content-addressed store, hash-verified

68 // (locked down to their own access), which will crash exec() when it tries
69 // to write to the files.
70 function writeFileLockedDown(filePath, data) {
71 fs.writeFileSync(filePath, data, {
72 encoding: 'utf8',
73 mode: parseInt('600', 8),
74 });
75 }
76 writeFileLockedDown(stdoutFile, '');
77 writeFileLockedDown(stderrFile, '');
78 writeFileLockedDown(paramsFile, JSON.stringify(paramsToSerialize));

Callers 1

execSyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…