From d96326935ba939bfcd18c4cac525dd108a54032c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sun, 8 Aug 2021 17:07:27 +0200 Subject: [PATCH] squash: make fs.md identical to master --- doc/api/fs.md | 124 ++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 94 insertions(+), 30 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 8cef874b6b2e98..13a51cdc8add33 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -601,7 +601,9 @@ Stop watching for changes on the given `fs.FSWatcher`. Once stopped, the ### `watcher.ref()` * Returns: {fs.FSWatcher} @@ -616,7 +618,9 @@ called previously. ### `watcher.unref()` * Returns: {fs.FSWatcher} @@ -629,7 +633,9 @@ no effect. ## Class: `fs.StatWatcher` * Extends {EventEmitter} @@ -639,7 +645,9 @@ object. ### `watcher.ref()` * Returns: {fs.StatWatcher} @@ -654,7 +662,9 @@ called previously. ### `watcher.unref()` * Returns: {fs.StatWatcher} @@ -1612,7 +1622,7 @@ See also: chown(2). * `path` {string|Buffer|URL} @@ -2466,7 +2490,9 @@ callback. ## `fs.lutimesSync(path, atime, mtime)` * `path` {string|Buffer|URL} @@ -2559,6 +2585,10 @@ not the file that it refers to. * `fd` {integer} @@ -3332,7 +3376,9 @@ a `Promise` for an `Object` with `bytesRead` and `buffers` properties. ## `fs.readvSync(fd, buffers[, position])` * `fd` {integer} @@ -3812,6 +3858,10 @@ Stats { + +The `'close'` event is emitted when the `FileHandle` and any of its underlying +resources (a file descriptor, for example) have been closed. + #### `filehandle.appendFile(data, options)` * `options` {Object} * `buffer` {Buffer|Uint8Array} **Default:** `Buffer.alloc(16384)` @@ -4867,7 +4927,9 @@ of the file. #### `filehandle.readv(buffers[, position])` * `buffers` {ArrayBufferView[]} @@ -5307,7 +5369,9 @@ no arguments upon success. ### `fsPromises.lutimes(path, atime, mtime)` * `path` {string|Buffer|URL} @@ -5512,7 +5576,7 @@ print('./').catch(console.error);