Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ added: v10.0.0
Closes the file handle after waiting for any pending operation on the handle to
complete.

The promise is rejected if closing the file handle fails. In case of an error,
the error's `code` will be one of [Common System Errors][].

```mjs
import { open } from 'node:fs/promises';

Expand Down Expand Up @@ -795,6 +798,9 @@ changes:
* `signal` {AbortSignal} An AbortSignal to cancel the operation. **Default:** `undefined`.
* Returns: {Promise} Fulfills with an {fs.Stats} for the file.

The promise is rejected if the stat operation fails. In case of an error, the
error's `code` will be one of [Common System Errors][].

#### `filehandle.sync()`

<!-- YAML
Expand Down
Loading