Skip to main content
FileHandle.stat - node__fs--promises.d.ts - Node documentation
method FileHandle.stat

Usage in Deno

```typescript import { type FileHandle } from "node:node__fs--promises.d.ts"; ```
FileHandle.stat(opts?: StatOptions & { bigint?: false | undefined; }): Promise<Stats>

Parameters

optional
opts: StatOptions & { bigint?: false | undefined; }

Return Type

Promise<Stats>
Fulfills with an {fs.Stats} for the file.
FileHandle.stat(opts: StatOptions & { bigint: true; }): Promise<BigIntStats>

Parameters

opts: StatOptions & { bigint: true; }

Return Type

Promise<BigIntStats>
FileHandle.stat(opts?: StatOptions): Promise<Stats | BigIntStats>

Parameters

optional
opts: StatOptions

Return Type

Promise<Stats | BigIntStats>