MCPcopy Create free account
hub / github.com/code-pushup/cli / ensureDirectoryExistsSync

Function ensureDirectoryExistsSync

packages/utils/src/lib/wal.ts:351–355  ·  view source on GitHub ↗
(dirPath: string)

Source from the content-addressed store, hash-verified

349 * @param dirPath - The directory path to ensure exists
350 */
351export function ensureDirectoryExistsSync(dirPath: string): void {
352 if (!fs.existsSync(dirPath)) {
353 fs.mkdirSync(dirPath, { recursive: true });
354 }
355}

Callers 3

WriteAheadLogFileClass · 0.85
repackMethod · 0.85
finalizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected