MCPcopy Index your code
hub / github.com/tinyplex/tinybase / ensureDir

Function ensureDir

gulpfile.mjs:140–143  ·  view source on GitHub ↗
(fileOrDirectory)

Source from the content-addressed store, hash-verified

138};
139
140const ensureDir = async (fileOrDirectory) => {
141 await promises.mkdir(dirname(fileOrDirectory), {recursive: true});
142 return fileOrDirectory;
143};
144
145const removeDir = async (dir) => {
146 await promises.rm(dir, {recursive: true});

Callers 2

copyDefinitionFunction · 0.85
compileModuleFunction · 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…