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

Usage in Deno

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

Parameters

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

Return Type

Promise<StatsFs>
Fulfills with the {fs.StatFs} object for the given `path`.
statfs(
path: PathLike,
opts: StatFsOptions & { bigint: true; },
): Promise<BigIntStatsFs>

Parameters

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

Return Type

Promise<BigIntStatsFs>
statfs(
path: PathLike,
): Promise<StatsFs | BigIntStatsFs>

Parameters

path: PathLike
optional
opts: StatFsOptions

Return Type