Skip to main content

fstat

function fstat
Jump to headingfstat(
fd: number,
callback: (
err: ErrnoException | null,
stats: Stats,
) => void
,
): void

Invokes the callback with the fs.Stats for the file descriptor.

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

Parameters Jump to heading

Jump to headingcallback: (
err: ErrnoException | null,
stats: Stats,
) => void

Return Type Jump to heading

void
Jump to headingfstat(
fd: number,
options: (StatOptions & { bigint?: false | undefined; }) | undefined,
callback: (
err: ErrnoException | null,
stats: Stats,
) => void
,
): void

Parameters Jump to heading

Jump to headingoptions: (StatOptions & { bigint?: false | undefined; }) | undefined
Jump to headingcallback: (
err: ErrnoException | null,
stats: Stats,
) => void

Return Type Jump to heading

void
Jump to headingfstat(
fd: number,
options: StatOptions & { bigint: true; },
callback: (
err: ErrnoException | null,
stats: BigIntStats,
) => void
,
): void

Parameters Jump to heading

Jump to headingoptions: StatOptions & { bigint: true; }
Jump to headingcallback: (
err: ErrnoException | null,
stats: BigIntStats,
) => void

Return Type Jump to heading

void
Jump to headingfstat(
fd: number,
options: StatOptions | undefined,
callback: (
err: ErrnoException | null,
stats: Stats | BigIntStats,
) => void
,
): void

Parameters Jump to heading

Jump to headingoptions: StatOptions | undefined
Jump to headingcallback: (
err: ErrnoException | null,
stats: Stats | BigIntStats,
) => void

Return Type Jump to heading

void
Back to top