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

Function makeStatsCallback

lib/fs.js:190–198  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

188// an optimization, since the data passed back to the callback needs to be
189// transformed anyway.
190function makeStatsCallback(cb) {
191 validateFunction(cb, 'cb');
192
193 return (err, stats) => {
194 if (err) return cb(err);
195 if (stats === undefined && err === null) return cb(null, undefined);
196 cb(err, getStatsFromBinding(stats));
197 };
198}
199
200const isFd = isInt32;
201

Callers 3

fstatFunction · 0.85
lstatFunction · 0.85
statFunction · 0.85

Calls 2

getStatsFromBindingFunction · 0.85
cbFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…