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

Usage in Deno

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

Parameters

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

Return Type

Promise<Stats>
Fulfills with the {fs.Stats} object for the given `path`.
stat(
path: PathLike,
opts: StatOptions & { bigint: true; },
): Promise<BigIntStats>

Parameters

path: PathLike
opts: StatOptions & { bigint: true; }

Return Type

Promise<BigIntStats>
stat(
path: PathLike,
opts?: StatOptions,
): Promise<Stats | BigIntStats>

Parameters

path: PathLike
optional
opts: StatOptions

Return Type

Promise<Stats | BigIntStats>