fs.statfs(path[, options], callback)
path<string> | <Buffer> | <URL>options<Object>bigint<boolean> 返回的 <fs.StatFs> 对象中的数值是否应为bigint。 默认值:false。
callback<Function>err<Error>stats<fs.StatFs>
异步的 statfs(2)。
返回有关包含 path 的已安装文件系统的信息。
回调有两个参数 (err, stats),其中 stats 是 <fs.StatFs> 对象。
如果出现错误,err.code 将是常见系统错误之一。
path<string> | <Buffer> | <URL>options<Object>bigint<boolean> Whether the numeric values in the returned <fs.StatFs> object should bebigint. Default:false.
callback<Function>err<Error>stats<fs.StatFs>
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.