Fstatfs
Bun

function

fs.promises.statfs

function statfs(
path: PathLike,
opts?: StatFsOptions & { bigint: false }
): Promise<StatsFs>;
@returns

Fulfills with the {fs.StatFs} object for the given path.

function statfs(
path: PathLike,
opts: StatFsOptions & { bigint: true }
): Promise<BigIntStatsFs>;
@returns

Fulfills with the {fs.StatFs} object for the given path.

function statfs(
path: PathLike,
): Promise<StatsFs | BigIntStatsFs>;
@returns

Fulfills with the {fs.StatFs} object for the given path.