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

Function readFileAfterOpen

lib/fs.js:339–353  ·  view source on GitHub ↗
(err, fd)

Source from the content-addressed store, hash-verified

337}
338
339function readFileAfterOpen(err, fd) {
340 const context = this.context;
341
342 if (err) {
343 context.callback(err);
344 return;
345 }
346
347 context.fd = fd;
348
349 const req = new FSReqCallback();
350 req.oncomplete = readFileAfterStat;
351 req.context = context;
352 binding.fstat(fd, false, req);
353}
354
355function readFileAfterStat(err, stats) {
356 const context = this.context;

Callers

nothing calls this directly

Calls 2

callbackMethod · 0.80
fstatMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…