MCPcopy
hub / github.com/davebcn87/pi-autoresearch / ensureParentDir

Function ensureParentDir

extensions/pi-autoresearch/paths.ts:86–88  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

84
85/** Ensure the parent directory for a session file exists before writing. */
86export function ensureParentDir(filePath: string): void {
87 fs.mkdirSync(path.dirname(filePath), { recursive: true });
88}

Callers 2

paths.test.mjsFile · 0.90
executeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected