| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 402071b commit 7857e9c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -618,6 +618,9 @@ exist. `data` can be a string or a {Buffer}. | |||
| 618 | 618 | ||
| 619 | 619 | If `options` is a string, then it specifies the `encoding`. | |
| 620 | 620 | ||
| 621 | + The `mode` option only affects the newly created file. See [`fs.open()`][] | ||
| 622 | + for more details. | ||
| 623 | + | ||
| 621 | 624 | The `path` may be specified as a {FileHandle} that has been opened | |
| 622 | 625 | for appending (using `fsPromises.open()`). | |
| 623 | 626 | ||
@@ -1333,6 +1336,9 @@ The `encoding` option is ignored if `data` is a buffer. | |||
| 1333 | 1336 | ||
| 1334 | 1337 | If `options` is a string, then it specifies the encoding. | |
| 1335 | 1338 | ||
| 1339 | + The `mode` option only affects the newly created file. See [`fs.open()`][] | ||
| 1340 | + for more details. | ||
| 1341 | + | ||
| 1336 | 1342 | Any specified {FileHandle} has to support writing. | |
| 1337 | 1343 | ||
| 1338 | 1344 | It is unsafe to use `fsPromises.writeFile()` multiple times on the same file | |
@@ -1599,6 +1605,9 @@ changes: | |||
| 1599 | 1605 | Asynchronously append data to a file, creating the file if it does not yet | |
| 1600 | 1606 | exist. `data` can be a string or a {Buffer}. | |
| 1601 | 1607 | ||
| 1608 | + The `mode` option only affects the newly created file. See [`fs.open()`][] | ||
| 1609 | + for more details. | ||
| 1610 | + | ||
| 1602 | 1611 | ```mjs | |
| 1603 | 1612 | import { appendFile } from 'fs'; | |
| 1604 | 1613 | ||
@@ -4032,6 +4041,9 @@ a file descriptor. | |||
| 4032 | 4041 | ||
| 4033 | 4042 | The `encoding` option is ignored if `data` is a buffer. | |
| 4034 | 4043 | ||
| 4044 | + The `mode` option only affects the newly created file. See [`fs.open()`][] | ||
| 4045 | + for more details. | ||
| 4046 | + | ||
| 4035 | 4047 | If `data` is a plain object, it must have an own (not inherited) `toString` | |
| 4036 | 4048 | function property. | |
| 4037 | 4049 | ||
@@ -4206,6 +4218,9 @@ changes: | |||
| 4206 | 4218 | Synchronously append data to a file, creating the file if it does not yet | |
| 4207 | 4219 | exist. `data` can be a string or a {Buffer}. | |
| 4208 | 4220 | ||
| 4221 | + The `mode` option only affects the newly created file. See [`fs.open()`][] | ||
| 4222 | + for more details. | ||
| 4223 | + | ||
| 4209 | 4224 | ```mjs | |
| 4210 | 4225 | import { appendFileSync } from 'fs'; | |
| 4211 | 4226 | ||
@@ -5162,6 +5177,9 @@ Returns `undefined`. | |||
| 5162 | 5177 | If `data` is a plain object, it must have an own (not inherited) `toString` | |
| 5163 | 5178 | function property. | |
| 5164 | 5179 | ||
| 5180 | + The `mode` option only affects the newly created file. See [`fs.open()`][] | ||
| 5181 | + for more details. | ||
| 5182 | + | ||
| 5165 | 5183 | For detailed information, see the documentation of the asynchronous version of | |
| 5166 | 5184 | this API: [`fs.writeFile()`][]. | |
| 5167 | 5185 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments