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

Method fstatSync

lib/internal/vfs/file_system.js:633–639  ·  view source on GitHub ↗

* Gets file stats from a file descriptor synchronously. * @param {number} fd The file descriptor * @param {object} [options] Options * @returns {Stats}

(fd, options)

Source from the content-addressed store, hash-verified

631 * @returns {Stats}
632 */
633 fstatSync(fd, options) {
634 const vfd = getVirtualFd(fd);
635 if (!vfd) {
636 throw createEBADF('fstat');
637 }
638 return vfd.entry.statSync(options);
639 }
640
641 // ==================== FS Operations (Async with Callbacks) ====================
642

Callers 15

fstatSyncFunction · 0.80
statSyncMethod · 0.80
runWithInvalidFDFunction · 0.80
test-fs-stat.jsFile · 0.80
testFunction · 0.80

Calls 3

getVirtualFdFunction · 0.85
createEBADFFunction · 0.85
statSyncMethod · 0.45

Tested by 2

testFunction · 0.64
testFunction · 0.64