MCPcopy Index your code
hub / github.com/darkreader/darkreader / mkDirIfMissing

Function mkDirIfMissing

tasks/utils.js:93–98  ·  view source on GitHub ↗
(dest)

Source from the content-addressed store, hash-verified

91 * @returns {Promise<void>}
92 */
93export async function mkDirIfMissing(dest) {
94 const dir = path.dirname(dest);
95 if (!(await pathExists(dir))) {
96 await fs.mkdir(dir, {recursive: true});
97 }
98}
99
100/**
101 * @param {string} src

Callers 2

copyFileFunction · 0.85
writeFileFunction · 0.85

Calls 1

pathExistsFunction · 0.85

Tested by

no test coverage detected