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

Method mkdtemp

lib/internal/vfs/file_system.js:957–968  ·  view source on GitHub ↗

* Creates a unique temporary directory asynchronously. * @param {string} prefix The prefix for the temp directory * @param {object|Function} [options] Options or callback * @param {Function} [callback] Callback (err, dirPath)

(prefix, options, callback)

Source from the content-addressed store, hash-verified

955 * @param {Function} [callback] Callback (err, dirPath)
956 */
957 mkdtemp(prefix, options, callback) {
958 if (typeof options === 'function') {
959 callback = options;
960 options = undefined;
961 }
962 try {
963 const dirPath = this.mkdtempSync(prefix);
964 process.nextTick(callback, null, dirPath);
965 } catch (err) {
966 process.nextTick(callback, err);
967 }
968 }
969
970 /**
971 * Opens a directory asynchronously.

Callers 15

mainFunction · 0.80
mainFunction · 0.80
mkdtempFunction · 0.80
mkdtempSyncFunction · 0.80
mkdtempDisposableSyncFunction · 0.80
mkdtempFunction · 0.80
mkdtempFunction · 0.80
mkdtempDisposableFunction · 0.80
mktmpFunction · 0.80

Calls 2

mkdtempSyncMethod · 0.95
mkdirMethod · 0.45

Tested by 5

testCallGraphMergeMethod · 0.64
temp_dirFunction · 0.64
test_splitMethod · 0.64