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

Function vfsVoid

lib/fs.js:220–224  ·  view source on GitHub ↗

* Route VFS async void result to error-first callback. * @param {Promise|undefined} promise The VFS handler result * @param {Function} callback The error-first callback * @returns {boolean} true if VFS handled, false otherwise

(promise, callback)

Source from the content-addressed store, hash-verified

218 * @returns {boolean} true if VFS handled, false otherwise
219 */
220function vfsVoid(promise, callback) {
221 if (promise === undefined) return false;
222 PromisePrototypeThen(promise, () => callback(null), callback);
223 return true;
224}
225
226function isFileType(stats, fileType) {
227 // Use stats array directly to avoid creating an fs.Stats instance just for

Callers 15

accessFunction · 0.85
closeFunction · 0.85
renameFunction · 0.85
truncateFunction · 0.85
ftruncateFunction · 0.85
rmdirFunction · 0.85
rmFunction · 0.85
fdatasyncFunction · 0.85
fsyncFunction · 0.85
symlinkFunction · 0.85
linkFunction · 0.85
unlinkFunction · 0.85

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…