fs.statfsSync(path[, options])
-
options
<Object>-
bigint
<boolean> 返回的 <fs.StatFs> 对象中的数值是否应为bigint
。默认值:false
。¥
bigint
<boolean> Whether the numeric values in the returned <fs.StatFs> object should bebigint
. Default:false
.
-
-
返回:<fs.StatFs>
¥Returns: <fs.StatFs>
同步 statfs(2)
。返回有关包含 path
的已安装文件系统的信息。
¥Synchronous statfs(2)
. Returns information about the mounted file system which
contains path
.
如果出现错误,err.code
将是 常见系统错误 之一。
¥In case of an error, the err.code
will be one of Common System Errors.