statfs

external fun statfs(path: PathLike, callback: (err: ErrnoException?, stats: StatsFs) -> Unit)(source)

Asynchronous statfs(2). Returns information about the mounted file system which contains path. The callback gets two arguments (err, stats) where statsis an fs.StatFs object.

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 statfs(path: PathLike, options: StatfsOptions?, callback: (err: ErrnoException?, stats: StatsFs) -> Unit)(source)
external fun statfs(path: PathLike, options: StatfsBigIntOptions, callback: (err: ErrnoException?, stats: BigIntStatsFs) -> Unit)(source)
external fun statfs(path: PathLike, options: StatFsOptions?, callback: (err: ErrnoException?, stats: Any) -> Unit)(source)
suspend fun statfs(path: PathLike, opts: StatfsOpts = undefined.unsafeCast<Nothing>()): StatsFs(source)
suspend fun statfs(path: PathLike, opts: StatFsOptions = undefined.unsafeCast<Nothing>()): Any(source)
suspend fun statfs(path: PathLike): StatsFs(source)