@@ -673,7 +673,7 @@ added: v10.0.0
673
673
* Returns: {Promise}
674
674
675
675
Change the file system timestamps of the object referenced by the {FileHandle}
676
- then resolves the promise with no arguments upon success.
676
+ then fulfills the promise with no arguments upon success.
677
677
678
678
#### ` filehandle .write (buffer, offset[, length[, position]])`
679
679
@@ -699,14 +699,14 @@ changes:
699
699
700
700
Write ` buffer` to the file.
701
701
702
- The promise is resolved with an object containing two properties:
702
+ The promise is fulfilled with an object containing two properties:
703
703
704
704
* ` bytesWritten` {integer} the number of bytes written
705
705
* ` buffer` {Buffer|TypedArray|DataView} a reference to the
706
706
` buffer` written.
707
707
708
708
It is unsafe to use ` filehandle .write ()` multiple times on the same file
709
- without waiting for the promise to be resolved (or rejected). For this
709
+ without waiting for the promise to be fulfilled (or rejected). For this
710
710
scenario, use [` filehandle .createWriteStream ()` ][].
711
711
712
712
On Linux, positional writes do not work when the file is opened in append mode.
@@ -756,13 +756,13 @@ changes:
756
756
Write ` string` to the file. If ` string` is not a string, the promise is
757
757
rejected with an error.
758
758
759
- The promise is resolved with an object containing two properties:
759
+ The promise is fulfilled with an object containing two properties:
760
760
761
761
* ` bytesWritten` {integer} the number of bytes written
762
762
* ` buffer` {string} a reference to the ` string` written.
763
763
764
764
It is unsafe to use ` filehandle .write ()` multiple times on the same file
765
- without waiting for the promise to be resolved (or rejected). For this
765
+ without waiting for the promise to be fulfilled (or rejected). For this
766
766
scenario, use [` filehandle .createWriteStream ()` ][].
767
767
768
768
On Linux, positional writes do not work when the file is opened in append mode.
@@ -793,14 +793,14 @@ changes:
793
793
794
794
Asynchronously writes data to a file, replacing the file if it already exists.
795
795
` data` can be a string, a buffer, an {AsyncIterable}, or an {Iterable} object.
796
- The promise is resolved with no arguments upon success.
796
+ The promise is fulfilled with no arguments upon success.
797
797
798
798
If ` options` is a string, then it specifies the ` encoding` .
799
799
800
800
The {FileHandle} has to support writing.
801
801
802
802
It is unsafe to use ` filehandle .writeFile ()` multiple times on the same file
803
- without waiting for the promise to be resolved (or rejected).
803
+ without waiting for the promise to be fulfilled (or rejected).
804
804
805
805
If one or more ` filehandle .write ()` calls are made on a file handle and then a
806
806
` filehandle .writeFile ()` call is made, the data will be written from the
@@ -821,14 +821,14 @@ added: v12.9.0
821
821
822
822
Write an array of {ArrayBufferView}s to the file.
823
823
824
- The promise is resolved with an object containing a two properties:
824
+ The promise is fulfilled with an object containing a two properties:
825
825
826
826
* ` bytesWritten` {integer} the number of bytes written
827
827
* ` buffers` {Buffer\[ ]|TypedArray\[ ]|DataView\[ ]} a reference to the ` buffers`
828
828
input.
829
829
830
830
It is unsafe to call ` writev ()` multiple times on the same file without waiting
831
- for the promise to be resolved (or rejected).
831
+ for the promise to be fulfilled (or rejected).
832
832
833
833
On Linux, positional writes don't work when the file is opened in append mode.
834
834
The kernel ignores the position argument and always appends the data to
@@ -864,7 +864,7 @@ or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`,
864
864
` fs .constants .W_OK | fs .constants .R_OK ` ). Check [File access constants][] for
865
865
possible values of ` mode` .
866
866
867
- If the accessibility check is successful, the promise is resolved with no
867
+ If the accessibility check is successful, the promise is fulfilled with no
868
868
value. If any of the accessibility checks fail, the promise is rejected
869
869
with an {Error} object. The following example checks if the file
870
870
` / etc/ passwd` can be read and written by the current process.
@@ -1333,7 +1333,7 @@ object with an `encoding` property specifying the character encoding to use for
1333
1333
the filenames. If the `encoding` is set to `'buffer'`, the filenames returned
1334
1334
will be passed as {Buffer} objects.
1335
1335
1336
- If `options.withFileTypes` is set to `true`, the resolved array will contain
1336
+ If `options.withFileTypes` is set to `true`, the returned array will contain
1337
1337
{fs.Dirent} objects.
1338
1338
1339
1339
```mjs
@@ -1447,7 +1447,7 @@ added: v10.0.0
1447
1447
* Returns: {Promise} Fulfills with the `linkString` upon success.
1448
1448
1449
1449
Reads the contents of the symbolic link referred to by `path`. See the POSIX
1450
- readlink(2) documentation for more detail. The promise is resolved with the
1450
+ readlink(2) documentation for more detail. The promise is fulfilled with the
1451
1451
`linkString` upon success.
1452
1452
1453
1453
The optional `options` argument can be a string specifying an encoding, or an
@@ -6355,7 +6355,7 @@ added: v12.12.0
6355
6355
Asynchronously close the directory' s underlying resource handle.
6356
6356
Subsequent reads will result in errors.
6357
6357
6358
- A promise is returned that will be resolved after the resource has been
6358
+ A promise is returned that will be fulfilled after the resource has been
6359
6359
closed.
6360
6360
6361
6361
#### ` dir.close(callback)`
@@ -6409,7 +6409,7 @@ added: v12.12.0
6409
6409
Asynchronously read the next directory entry via readdir (3 ) as an
6410
6410
{fs .Dirent }.
6411
6411
6412
- A promise is returned that will be resolved with an {fs .Dirent }, or ` null`
6412
+ A promise is returned that will be fulfilled with an {fs .Dirent }, or ` null`
6413
6413
if there are no more directory entries to read.
6414
6414
6415
6415
Directory entries returned by this function are in no particular order as
0 commit comments