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

Function mkdtemp

lib/internal/vfs/setup.js:624–630  ·  view source on GitHub ↗
(prefix, options)

Source from the content-addressed store, hash-verified

622 });
623 },
624 mkdtemp(prefix, options) {
625 const promise = vfsOp(prefix, (vfs, n) => vfs.promises.mkdtemp(n));
626 if (promise !== undefined && options?.encoding === 'buffer') {
627 return promise.then((result) => Buffer.from(result));
628 }
629 return promise;
630 },
631 chmod: (path, mode) =>
632 vfsOp(path, (vfs, n) => vfs.promises.chmod(n, mode).then(() => true)),
633 utimes: (path, atime, mtime) =>

Callers

nothing calls this directly

Calls 4

vfsOpFunction · 0.85
mkdtempMethod · 0.80
thenMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…