@@ -664,6 +664,9 @@ exist. `data` can be a string or a {Buffer}.
664
664
665
665
If ` options` is a string, then it specifies the ` encoding` .
666
666
667
+ The ` mode` option only affects the newly created file. See [` fs .open ()` ][]
668
+ for more details.
669
+
667
670
The ` path` may be specified as a {FileHandle} that has been opened
668
671
for appending (using ` fsPromises .open ()` ).
669
672
@@ -1379,6 +1382,9 @@ The `encoding` option is ignored if `data` is a buffer.
1379
1382
1380
1383
If `options` is a string, then it specifies the encoding.
1381
1384
1385
+ The `mode` option only affects the newly created file. See [`fs.open()`][]
1386
+ for more details.
1387
+
1382
1388
Any specified {FileHandle} has to support writing.
1383
1389
1384
1390
It is unsafe to use `fsPromises.writeFile()` multiple times on the same file
@@ -1645,6 +1651,9 @@ changes:
1645
1651
Asynchronously append data to a file, creating the file if it does not yet
1646
1652
exist. `data` can be a string or a {Buffer}.
1647
1653
1654
+ The `mode` option only affects the newly created file. See [`fs.open()`][]
1655
+ for more details.
1656
+
1648
1657
```mjs
1649
1658
import { appendFile } from 'fs';
1650
1659
@@ -4086,6 +4095,9 @@ a file descriptor.
4086
4095
4087
4096
The ` encoding` option is ignored if ` data` is a buffer.
4088
4097
4098
+ The ` mode` option only affects the newly created file. See [` fs .open ()` ][]
4099
+ for more details.
4100
+
4089
4101
If ` data` is a plain object, it must have an own (not inherited) ` toString`
4090
4102
function property.
4091
4103
@@ -4260,6 +4272,9 @@ changes:
4260
4272
Synchronously append data to a file, creating the file if it does not yet
4261
4273
exist. ` data` can be a string or a {Buffer}.
4262
4274
4275
+ The ` mode` option only affects the newly created file. See [` fs .open ()` ][]
4276
+ for more details.
4277
+
4263
4278
` ` ` mjs
4264
4279
import { appendFileSync } from ' fs' ;
4265
4280
@@ -5216,6 +5231,9 @@ Returns `undefined`.
5216
5231
If ` data` is a plain object, it must have an own (not inherited) ` toString`
5217
5232
function property.
5218
5233
5234
+ The ` mode` option only affects the newly created file. See [` fs .open ()` ][]
5235
+ for more details.
5236
+
5219
5237
For detailed information, see the documentation of the asynchronous version of
5220
5238
this API: [` fs .writeFile ()` ][].
5221
5239
0 commit comments