MCPcopy Index your code
hub / github.com/nodejs/node / mkdir

Function mkdir

lib/internal/vfs/setup.js:594–597  ·  view source on GitHub ↗
(path, options)

Source from the content-addressed store, hash-verified

592 return vfsOp(path, (vfs, n) => vfs.promises.appendFile(n, data, options).then(() => true));
593 },
594 mkdir(path, options) {
595 return vfsOp(path, (vfs, n) =>
596 vfs.promises.mkdir(n, options).then((result) => ({ __proto__: null, result })));
597 },
598 rmdir: (path) => vfsOp(path, (vfs, n) => vfs.promises.rmdir(n).then(() => true)),
599 rm: (path, options) => vfsOp(path, (vfs, n) => vfs.promises.rm(n, options).then(() => true)),
600 unlink: (path) => vfsOp(path, (vfs, n) => vfs.promises.unlink(n).then(() => true)),

Callers

nothing calls this directly

Calls 3

vfsOpFunction · 0.85
thenMethod · 0.45
mkdirMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…