MCPcopy
hub / github.com/webpack/webpack / mkdir

Function mkdir

test/Compiler-caching.test.js:66–71  ·  view source on GitHub ↗

* @param {string} dirPath directory path * @param {(err: NodeJS.ErrnoException) => void} cb callback

(dirPath, cb)

Source from the content-addressed store, hash-verified

64 * @param {(err: NodeJS.ErrnoException) => void} cb callback
65 */
66 mkdir(dirPath, cb) {
67 logs.mkdir.push(dirPath);
68 const err = /** @type {NodeJS.ErrnoException} */ (new Error("error"));
69 err.code = "EEXIST";
70 cb(err);
71 },
72 /**
73 * @param {string} name file name
74 * @param {Buffer} content file content

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected