FfstatSync
Bun

function

fs.fstatSync

function fstatSync(
fd: number,
options?: StatOptions & { bigint: false }
): Stats;

Retrieves the fs.Stats for the file descriptor.

See the POSIX fstat(2) documentation for more detail.

function fstatSync(
fd: number,
options: StatOptions & { bigint: true }

Retrieves the fs.Stats for the file descriptor.

See the POSIX fstat(2) documentation for more detail.

function fstatSync(
fd: number,
options?: StatOptions

Retrieves the fs.Stats for the file descriptor.

See the POSIX fstat(2) documentation for more detail.