Fstat
Bun

function

fs.promises.stat

function stat(
path: PathLike,
opts?: StatOptions & { bigint: false }
): Promise<Stats>;
@returns

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

function stat(
path: PathLike,
opts: StatOptions & { bigint: true }
): Promise<BigIntStats>;
@returns

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

function stat(
path: PathLike,
): Promise<Stats | BigIntStats>;
@returns

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