doc: fix two sorting nits in fs.md
PR-URL: https://github.com/nodejs/node/pull/20078 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
addc04be0b
commit
2e76b175ed
@ -320,6 +320,13 @@ fs.watch('./tmp', { encoding: 'buffer' }, (eventType, filename) => {
|
||||
});
|
||||
```
|
||||
|
||||
### Event: 'close'
|
||||
<!-- YAML
|
||||
added: REPLACEME
|
||||
-->
|
||||
|
||||
Emitted when the watcher stops watching for changes.
|
||||
|
||||
### Event: 'error'
|
||||
<!-- YAML
|
||||
added: v0.5.8
|
||||
@ -329,13 +336,6 @@ added: v0.5.8
|
||||
|
||||
Emitted when an error occurs while watching the file.
|
||||
|
||||
### Event: 'close'
|
||||
<!-- YAML
|
||||
added: REPLACEME
|
||||
-->
|
||||
|
||||
Emitted when the watcher stops watching for changes.
|
||||
|
||||
### watcher.close()
|
||||
<!-- YAML
|
||||
added: v0.5.8
|
||||
@ -3465,13 +3465,6 @@ use a simple numeric file descriptor, all `fsPromises.*` variations use the
|
||||
`FileHandle` class in order to help protect against accidental leaking of
|
||||
unclosed file descriptors after a `Promise` is resolved or rejected.
|
||||
|
||||
#### filehandle.fd
|
||||
<!-- YAML
|
||||
added: REPLACEME
|
||||
-->
|
||||
|
||||
* {number} The numeric file descriptor managed by the `FileHandle` object.
|
||||
|
||||
#### filehandle.appendFile(data, options)
|
||||
<!-- YAML
|
||||
added: REPLACEME
|
||||
@ -3544,6 +3537,13 @@ added: REPLACEME
|
||||
Asynchronous fdatasync(2). The `Promise` is resolved with no arguments upon
|
||||
success.
|
||||
|
||||
#### filehandle.fd
|
||||
<!-- YAML
|
||||
added: REPLACEME
|
||||
-->
|
||||
|
||||
* {number} The numeric file descriptor managed by the `FileHandle` object.
|
||||
|
||||
#### filehandle.read(buffer, offset, length, position)
|
||||
<!-- YAML
|
||||
added: REPLACEME
|
||||
|
Loading…
x
Reference in New Issue
Block a user