MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / ensureDirExists

Function ensureDirExists

modules/code-generator/src/cli/init-solution.ts:56–65  ·  view source on GitHub ↗
(dirPath: string)

Source from the content-addressed store, hash-verified

54}
55
56async function ensureDirExists(dirPath: string) {
57 try {
58 await fs.mkdir(dirPath, { recursive: true });
59 } catch (e) {
60 if ((e as { code: string }).code === 'EEXIST') {
61 return;// ignore existing error
62 }
63 throw e;
64 }
65}

Callers 1

initSolutionFunction · 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…