We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0423e2 commit 0d795e7Copy full SHA for 0d795e7
1 file changed
doc/api/fs.md
@@ -242,6 +242,9 @@ added: v10.0.0
242
Closes the file handle after waiting for any pending operation on the handle to
243
complete.
244
245
+The promise is rejected if closing the file handle fails. In case of an error,
246
+the error's `code` will be one of [Common System Errors][].
247
+
248
```mjs
249
import { open } from 'node:fs/promises';
250
@@ -795,6 +798,9 @@ changes:
795
798
* `signal` {AbortSignal} An AbortSignal to cancel the operation. **Default:** `undefined`.
796
799
* Returns: {Promise} Fulfills with an {fs.Stats} for the file.
797
800
801
+The promise is rejected if the stat operation fails. In case of an error, the
802
+error's `code` will be one of [Common System Errors][].
803
804
#### `filehandle.sync()`
805
806
<!-- YAML
0 commit comments