function statfs
Usage in Deno
import { statfs } from "node:fs";
statfs(): void
Asynchronous statfs(2)
. Returns information about the mounted file system which
contains path
. The callback gets two arguments (err, stats)
where stats
is an fs.StatFs
object.
In case of an error, the err.code
will be one of Common System Errors
.
void
statfs(path: PathLike,options: (StatFsOptions & { bigint?: false | undefined; }) | undefined,callback: (err: ErrnoException | null,stats: StatsFs,) => void,): void
path: PathLike
options: (StatFsOptions & { bigint?: false | undefined; }) | undefined
callback: (err: ErrnoException | null,stats: StatsFs,) => void
void
statfs(path: PathLike,options: StatFsOptions & { bigint: true; },callback: (err: ErrnoException | null,stats: BigIntStatsFs,) => void,): void
path: PathLike
options: StatFsOptions & { bigint: true; }
callback: (err: ErrnoException | null,stats: BigIntStatsFs,) => void
void
statfs(path: PathLike,options: StatFsOptions | undefined,callback: (err: ErrnoException | null,stats: StatsFs | BigIntStatsFs,) => void,): void
path: PathLike
options: StatFsOptions | undefined
callback: (err: ErrnoException | null,stats: StatsFs | BigIntStatsFs,) => void
void