Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Moved the close section just after bytesWritten
  • Loading branch information
ihiteshsharma committed May 11, 2021
commit 8478945986868c7a4e0068aedfef0602c0a87955
24 changes: 12 additions & 12 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -5948,6 +5948,18 @@ added: v0.4.7
The number of bytes written so far. Does not include data that is still queued
for writing.

#### `writeStream.close([callback])`
<!-- YAML
added: REPLACEME
Comment thread
aduh95 marked this conversation as resolved.
Outdated
-->

* `callback` {Function}
* `err` {Error}

Closes the specified `writeStream`. Optionally accepts a
Comment thread
ihiteshsharma marked this conversation as resolved.
Outdated
callback that will be executed once the `writeStream`
is closed.

#### `writeStream.path`
<!-- YAML
added: v0.1.93
Expand All @@ -5968,18 +5980,6 @@ added: v11.2.0
This property is `true` if the underlying file has not been opened yet,
i.e. before the `'ready'` event is emitted.

#### `writeStream.close([callback])`
<!-- YAML
added: REPLACEME
-->

* `callback` {Function}
* `err` {Error}

Closes the specified `writeStream`. Optionally accepts a
callback that will be executed once the `writeStream`
is closed.

### `fs.constants`

* {Object}
Expand Down