MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / mkDirRecursive

Function mkDirRecursive

src/shared/utils/fs.ts:471–477  ·  view source on GitHub ↗
(folder: string)

Source from the content-addressed store, hash-verified

469}
470
471export function mkDirRecursive(folder: string) {
472 const parent = path.dirname(folder);
473 if (!fs.existsSync(parent))
474 mkDirRecursive(parent);
475 if (!fs.existsSync(folder))
476 fs.mkdirSync(folder);
477}
478
479export function createFolderForFile(file?: string): string | undefined {
480 try {

Callers 8

fs.test.tsFile · 0.90
testExecutionFunction · 0.90
flutterScreenshotMethod · 0.90
createFolderForFileFunction · 0.85

Calls

no outgoing calls

Tested by 1

testExecutionFunction · 0.72