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

Function fstat

lib/internal/fs/promises.js:1775–1782  ·  view source on GitHub ↗
(handle, options = { __proto__: null, bigint: false })

Source from the content-addressed store, hash-verified

1773}
1774
1775async function fstat(handle, options = { __proto__: null, bigint: false }) {
1776 const result = await PromisePrototypeThen(
1777 binding.fstat(handle.fd, options.bigint, kUsePromises),
1778 undefined,
1779 handleErrorFromBinding,
1780 );
1781 return getStatsFromBinding(result);
1782}
1783
1784async function lstat(path, options = { __proto__: null, bigint: false }) {
1785 const h = vfsState.handlers;

Callers

nothing calls this directly

Calls 2

getStatsFromBindingFunction · 0.85
fstatMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…