fstatSync - Node documentation
function fstatSync

Usage in Deno

import { fstatSync } from "node:fs";
fstatSync(
fd: number,
options?: StatOptions & { bigint?: false | undefined; },
): Stats

Retrieves the fs.Stats for the file descriptor.

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

Parameters

fd: number
optional
options: StatOptions & { bigint?: false | undefined; }

Return Type

fstatSync(
fd: number,
options: StatOptions & { bigint: true; },
): BigIntStats

Parameters

fd: number
options: StatOptions & { bigint: true; }

Return Type

fstatSync(
fd: number,
options?: StatOptions,
): Stats | BigIntStats

Parameters

fd: number
optional
options: StatOptions

Return Type