@@ -1531,6 +1531,19 @@ changes:
15311531* Returns: {Promise} Fulfills with the {fs.Stats} object for the
15321532 given `path`.
15331533
1534+ ### `fsPromises.statfs(path[, options])`
1535+
1536+ <!-- YAML
1537+ added: REPLACEME
1538+ -->
1539+
1540+ * `path` {string|Buffer|URL}
1541+ * `options` {Object}
1542+ * `bigint` {boolean} Whether the numeric values in the returned
1543+ {fs.StatFs} object should be `bigint`. **Default:** `false`.
1544+ * Returns: {Promise} Fulfills with the {fs.StatFs} object for the
1545+ given `path`.
1546+
15341547### `fsPromises.symlink(target, path[, type])`
15351548
15361549<!-- YAML
@@ -4101,6 +4114,26 @@ Stats {
41014114}
41024115` ` `
41034116
4117+ ### ` fs.statfs(path[, options], callback)`
4118+
4119+ <!-- YAML
4120+ added: REPLACEME
4121+ -->
4122+
4123+ * ` path` {string| Buffer| URL }
4124+ * ` options` {Object }
4125+ * ` bigint` {boolean} Whether the numeric values in the returned
4126+ {fs .StatFs } object should be ` bigint` . ** Default: ** ` false` .
4127+ * ` callback` {Function }
4128+ * ` err` {Error }
4129+ * ` stats` {fs .StatFs }
4130+
4131+ Asynchronous statfs (2 ). Returns information about the mounted file system which
4132+ contains ` path` . The callback gets two arguments ` (err, stats)` where ` stats`
4133+ is an {fs .StatFs } object.
4134+
4135+ In case of an error, the ` err.code` will be one of [Common System Errors][].
4136+
41044137### ` fs.symlink(target, path[, type], callback)`
41054138
41064139<!-- YAML
@@ -5852,6 +5885,23 @@ changes:
58525885
58535886Retrieves the {fs .Stats } for the path.
58545887
5888+ ### ` fs.statfsSync(path[, options])`
5889+
5890+ <!-- YAML
5891+ added: REPLACEME
5892+ -->
5893+
5894+ * ` path` {string| Buffer| URL }
5895+ * ` options` {Object }
5896+ * ` bigint` {boolean} Whether the numeric values in the returned
5897+ {fs .StatFs } object should be ` bigint` . ** Default: ** ` false` .
5898+ * Returns: {fs .StatFs }
5899+
5900+ Synchronous statfs (2 ). Returns information about the mounted file system which
5901+ contains ` path` .
5902+
5903+ In case of an error, the ` err.code` will be one of [Common System Errors][].
5904+
58555905### ` fs.symlinkSync(target, path[, type])`
58565906
58575907<!-- YAML
@@ -6944,6 +6994,114 @@ The times in the stat object have the following semantics:
69446994Prior to Node .js 0.12 , the ` ctime` held the ` birthtime` on Windows systems . As
69456995of 0.12 , ` ctime` is not " creation time" , and on Unix systems, it never was.
69466996
6997+ ### Class: ` fs.StatFs`
6998+
6999+ <!-- YAML
7000+ added: REPLACEME
7001+ -->
7002+
7003+ Provides information about a mounted file system.
7004+
7005+ Objects returned from [` fs.statfs()` ][] and its synchronous counterpart are of
7006+ this type . If ` bigint` in the ` options` passed to those methods is ` true` , the
7007+ numeric values will be ` bigint` instead of ` number` .
7008+
7009+ ` ` ` console
7010+ StatFs {
7011+ type: 1397114950,
7012+ bsize: 4096,
7013+ blocks: 121938943,
7014+ bfree: 61058895,
7015+ bavail: 61058895,
7016+ files: 999,
7017+ ffree: 1000000
7018+ }
7019+ ` ` `
7020+
7021+ ` bigint` version:
7022+
7023+ ` ` ` console
7024+ StatFs {
7025+ type: 1397114950n,
7026+ bsize: 4096n,
7027+ blocks: 121938943n,
7028+ bfree: 61058895n,
7029+ bavail: 61058895n,
7030+ files: 999n,
7031+ ffree: 1000000n
7032+ }
7033+ ` ` `
7034+
7035+ #### ` statfs.bavail`
7036+
7037+ <!-- YAML
7038+ added: REPLACEME
7039+ -->
7040+
7041+ * {number| bigint}
7042+
7043+ Free blocks available to unprivileged users.
7044+
7045+ #### ` statfs.bfree`
7046+
7047+ <!-- YAML
7048+ added: REPLACEME
7049+ -->
7050+
7051+ * {number| bigint}
7052+
7053+ Free blocks in file system.
7054+
7055+ #### ` statfs.blocks`
7056+
7057+ <!-- YAML
7058+ added: REPLACEME
7059+ -->
7060+
7061+ * {number| bigint}
7062+
7063+ Total data blocks in file system.
7064+
7065+ #### ` statfs.bsize`
7066+
7067+ <!-- YAML
7068+ added: REPLACEME
7069+ -->
7070+
7071+ * {number| bigint}
7072+
7073+ Optimal transfer block size.
7074+
7075+ #### ` statfs.ffree`
7076+
7077+ <!-- YAML
7078+ added: REPLACEME
7079+ -->
7080+
7081+ * {number| bigint}
7082+
7083+ Free file nodes in file system.
7084+
7085+ #### ` statfs.files`
7086+
7087+ <!-- YAML
7088+ added: REPLACEME
7089+ -->
7090+
7091+ * {number| bigint}
7092+
7093+ Total file nodes in file system.
7094+
7095+ #### ` statfs.type`
7096+
7097+ <!-- YAML
7098+ added: REPLACEME
7099+ -->
7100+
7101+ * {number| bigint}
7102+
7103+ Type of file system.
7104+
69477105### Class: ` fs.WriteStream`
69487106
69497107<!-- YAML
@@ -7787,6 +7945,7 @@ the file contents.
77877945[` fs .rmSync ()` ]: #fsrmsyncpath-options
77887946[` fs .rmdir ()` ]: #fsrmdirpath-options-callback
77897947[` fs .stat ()` ]: #fsstatpath-options-callback
7948+ [` fs .statfs ()` ]: #fsstatfspath-options-callback
77907949[` fs .symlink ()` ]: #fssymlinktarget-path-type-callback
77917950[` fs .utimes ()` ]: #fsutimespath-atime-mtime-callback
77927951[` fs .watch ()` ]: #fswatchfilename-options-listener
0 commit comments