FstatfsSync
Bun

function

fs.statfsSync

function statfsSync(
path: PathLike,
options?: StatFsOptions & { bigint: false }

Synchronous statfs(2). Returns information about the mounted file system which contains path.

In case of an error, the err.code will be one of Common System Errors.

@param path

A path to an existing file or directory on the file system to be queried.

function statfsSync(
path: PathLike,
options: StatFsOptions & { bigint: true }

Synchronous statfs(2). Returns information about the mounted file system which contains path.

In case of an error, the err.code will be one of Common System Errors.

@param path

A path to an existing file or directory on the file system to be queried.

function statfsSync(
path: PathLike,
options?: StatFsOptions

Synchronous statfs(2). Returns information about the mounted file system which contains path.

In case of an error, the err.code will be one of Common System Errors.

@param path

A path to an existing file or directory on the file system to be queried.