fs.statfs(path[, options], callback)


异步 statfs(2)。返回包含 path 的已挂载文件系统的信息。回调函数接收两个参数 (err, stats),其中 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.】

如果发生错误,err.code 将是 常见系统错误 中的一个。

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