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

Function mkdir

test/Compiler.test.js:54–62  ·  view source on GitHub ↗
(
					/** @type {string} */ path,
					/** @type {(err: null | NodeJS.ErrnoException) => void} */ callback
				)

Source from the content-addressed store, hash-verified

52 c.outputFileSystem = /** @type {import("../").OutputFileSystem} */ (
53 /** @type {unknown} */ ({
54 mkdir(
55 /** @type {string} */ path,
56 /** @type {(err: null | NodeJS.ErrnoException) => void} */ callback
57 ) {
58 logs.mkdir.push(path);
59 const err = /** @type {NodeJS.ErrnoException} */ (new Error("error"));
60 err.code = "EEXIST";
61 callback(err);
62 },
63 writeFile(
64 /** @type {string} */ name,
65 /** @type {Buffer} */ content,

Callers

nothing calls this directly

Calls 2

callbackFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected