MCPcopy Create free account
hub / github.com/code-forge-io/react-router-devtools / ensureDir

Function ensureDir

docs/scripts/generate-docs.ts:28–28  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

26}
27
28const ensureDir = (p: string) => mkdirSync(p, { recursive: true });
29const resetDir = (p: string) => { if (existsSync(p)) rmSync(p, { recursive: true, force: true }); ensureDir(p); };
30
31const contentDir = "content";

Callers 1

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