summaryrefslogtreecommitdiff
path: root/doc/api/fs.md
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-10-10 14:31:33 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2019-10-11 21:25:36 +0200
commit06f6d662f679ee04679d97ecd5087e6f17268141 (patch)
tree4c70b15b21a1fd92198216312f6e43b337ef5bbc /doc/api/fs.md
parent5909532aace7412c5988bbfe2c777333aea2fd94 (diff)
downloadandroid-node-v8-06f6d662f679ee04679d97ecd5087e6f17268141.tar.gz
android-node-v8-06f6d662f679ee04679d97ecd5087e6f17268141.tar.bz2
android-node-v8-06f6d662f679ee04679d97ecd5087e6f17268141.zip
2019-10-11, Version 12.12.0 (Current)
Notable changes: * build: * Add `--force-context-aware` flag to prevent usage of native node addons that aren't context aware https://github.com/nodejs/node/pull/29631 * deprecations: * Add documentation-only deprecation for `process._tickCallback()` https://github.com/nodejs/node/pull/29781 * esm: * Using JSON modules is experimental again https://github.com/nodejs/node/pull/29754 * fs: * Introduce `opendir()` and `fs.Dir` to iterate through directories https://github.com/nodejs/node/pull/29349 * process: * Add source-map support to stack traces by using `--source-map-support` https://github.com/nodejs/node/pull/29564 * tls: * Honor `pauseOnConnect` option https://github.com/nodejs/node/pull/29635 * Add option for private keys for OpenSSL engines https://github.com/nodejs/node/pull/28973 PR-URL: https://github.com/nodejs/node/pull/29919
Diffstat (limited to 'doc/api/fs.md')
-rw-r--r--doc/api/fs.md24
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md
index 3d122b0e06..9de4e95c48 100644
--- a/doc/api/fs.md
+++ b/doc/api/fs.md
@@ -286,7 +286,7 @@ performance implications for some applications. See the
## Class fs.Dir
<!-- YAML
-added: REPLACEME
+added: v12.12.0
-->
A class representing a directory stream.
@@ -307,7 +307,7 @@ print('./').catch(console.error);
### dir.path
<!-- YAML
-added: REPLACEME
+added: v12.12.0
-->
* {string}
@@ -317,7 +317,7 @@ The read-only path of this directory as was provided to [`fs.opendir()`][],
### dir.close()
<!-- YAML
-added: REPLACEME
+added: v12.12.0
-->
* Returns: {Promise}
@@ -330,7 +330,7 @@ closed.
### dir.close(callback)
<!-- YAML
-added: REPLACEME
+added: v12.12.0
-->
* `callback` {Function}
@@ -343,7 +343,7 @@ The `callback` will be called after the resource handle has been closed.
### dir.closeSync()
<!-- YAML
-added: REPLACEME
+added: v12.12.0
-->
Synchronously close the directory's underlying resource handle.
@@ -351,7 +351,7 @@ Subsequent reads will result in errors.
### dir.read()
<!-- YAML
-added: REPLACEME
+added: v12.12.0
-->
* Returns: {Promise} containing {fs.Dirent|null}
@@ -367,7 +367,7 @@ provided by the operating system's underlying directory mechanisms._
### dir.read(callback)
<!-- YAML
-added: REPLACEME
+added: v12.12.0
-->
* `callback` {Function}
@@ -385,7 +385,7 @@ provided by the operating system's underlying directory mechanisms._
### dir.readSync()
<!-- YAML
-added: REPLACEME
+added: v12.12.0
-->
* Returns: {fs.Dirent|null}
@@ -400,7 +400,7 @@ provided by the operating system's underlying directory mechanisms._
### dir\[Symbol.asyncIterator\]()
<!-- YAML
-added: REPLACEME
+added: v12.12.0
-->
* Returns: {AsyncIterator} of {fs.Dirent}
@@ -2641,7 +2641,7 @@ this API: [`fs.open()`][].
## fs.opendir(path\[, options\], callback)
<!-- YAML
-added: REPLACEME
+added: v12.12.0
-->
* `path` {string|Buffer|URL}
@@ -2661,7 +2661,7 @@ directory and subsequent read operations.
## fs.opendirSync(path\[, options\])
<!-- YAML
-added: REPLACEME
+added: v12.12.0
-->
* `path` {string|Buffer|URL}
@@ -4818,7 +4818,7 @@ a colon, Node.js will open a file system stream, as described by
## fsPromises.opendir(path\[, options\])
<!-- YAML
-added: REPLACEME
+added: v12.12.0
-->
* `path` {string|Buffer|URL}