MCPcopy
hub / github.com/garrytan/gstack / mkdirSecure

Function mkdirSecure

browse/src/file-permissions.ts:147–150  ·  view source on GitHub ↗
(dirPath: string)

Source from the content-addressed store, hash-verified

145 * Safe to call on an existing directory — re-applies the ACL idempotently.
146 */
147export function mkdirSecure(dirPath: string): void {
148 fs.mkdirSync(dirPath, { recursive: true, mode: 0o700 });
149 restrictDirectoryPermissions(dirPath);
150}
151
152/**
153 * Reset the once-per-process warning gate. Test-only.

Callers 15

ensureDirFunction · 0.90
getDeviceSaltFunction · 0.90
logAttemptFunction · 0.90
writeSessionStateFunction · 0.90
writeDecisionFunction · 0.90
ensureTestsavantStagedFunction · 0.90
ensureDebertaStagedFunction · 0.90
handleMetaCommandFunction · 0.90
stageSkillFunction · 0.90
ensureStateDirFunction · 0.90
launchHeadedMethod · 0.90

Calls 1

Tested by

no test coverage detected