statfsSync

external fun statfsSync(path: PathLike, options: StatfsSyncOptions = definedExternally): StatsFs(source)

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.

Since

v19.6.0, v18.15.0

Parameters

path

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


external fun statfsSync(path: PathLike, options: StatFsOptions = definedExternally): Any(source)
external fun statfsSync(path: PathLike): StatsFs(source)