@@ -1589,6 +1589,9 @@ Renames `oldPath` to `newPath`.
15891589<!-- YAML
15901590added: v10.0.0
15911591changes:
1592+ - version: REPLACEME
1593+ pr-url: https://github.com/nodejs/node/pull/58616
1594+ description: Remove `recursive` option.
15921595 - version: v16.0.0
15931596 pr-url: https://github.com/nodejs/node/pull/37216
15941597 description: " Using ` fsPromises.rmdir(path, { recursive: true })` on a ` path`
@@ -1622,18 +1625,10 @@ changes:
16221625-->
16231626
16241627* `path` {string|Buffer|URL}
1625- * `options` {Object}
1626- * `maxRetries` {integer} If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or
1627- `EPERM` error is encountered, Node.js retries the operation with a linear
1628- backoff wait of `retryDelay` milliseconds longer on each try. This option
1629- represents the number of retries. This option is ignored if the `recursive`
1630- option is not `true`. **Default:** `0`.
1631- * `recursive` {boolean} If `true`, perform a recursive directory removal. In
1632- recursive mode, operations are retried on failure. **Default:** `false`.
1633- **Deprecated.**
1634- * `retryDelay` {integer} The amount of time in milliseconds to wait between
1635- retries. This option is ignored if the `recursive` option is not `true`.
1636- **Default:** `100`.
1628+ * `options` {Object} There are currently no options exposed. There used to
1629+ be options for `recursive`, `maxBusyTries`, and `emfileWait` but they were
1630+ deprecated and removed. The `options` argument is still accepted for
1631+ backwards compatibility but it is not used.
16371632* Returns: {Promise} Fulfills with `undefined` upon success.
16381633
16391634Removes the directory identified by `path`.
@@ -4255,6 +4250,9 @@ rename('oldFile.txt', 'newFile.txt', (err) => {
42554250<!-- YAML
42564251added: v0.0.2
42574252changes:
4253+ - version: REPLACEME
4254+ pr-url: https://github.com/nodejs/node/pull/58616
4255+ description: Remove ` recursive` option.
42584256 - version: v18.0.0
42594257 pr-url: https://github.com/nodejs/node/pull/41678
42604258 description: Passing an invalid callback to the ` callback` argument
@@ -4305,18 +4303,10 @@ changes:
43054303-->
43064304
43074305* ` path` {string|Buffer|URL}
4308- * ` options` {Object}
4309- * ` maxRetries` {integer} If an ` EBUSY ` , ` EMFILE ` , ` ENFILE ` , ` ENOTEMPTY ` , or
4310- ` EPERM ` error is encountered, Node.js retries the operation with a linear
4311- backoff wait of ` retryDelay` milliseconds longer on each try. This option
4312- represents the number of retries. This option is ignored if the ` recursive`
4313- option is not ` true ` . **Default:** ` 0 ` .
4314- * ` recursive` {boolean} If ` true ` , perform a recursive directory removal. In
4315- recursive mode, operations are retried on failure. **Default:** ` false ` .
4316- **Deprecated.**
4317- * ` retryDelay` {integer} The amount of time in milliseconds to wait between
4318- retries. This option is ignored if the ` recursive` option is not ` true ` .
4319- **Default:** ` 100 ` .
4306+ * ` options` {Object} There are currently no options exposed. There used to
4307+ be options for ` recursive` , ` maxBusyTries` , and ` emfileWait` but they were
4308+ deprecated and removed. The ` options` argument is still accepted for
4309+ backwards compatibility but it is not used.
43204310* ` callback` {Function}
43214311 * ` err` {Error}
43224312
@@ -6234,6 +6224,9 @@ See the POSIX rename(2) documentation for more details.
62346224<!-- YAML
62356225added: v0.1.21
62366226changes:
6227+ - version: REPLACEME
6228+ pr-url: https://github.com/nodejs/node/pull/58616
6229+ description: Remove ` recursive` option.
62376230 - version: v16.0.0
62386231 pr-url: https://github.com/nodejs/node/pull/37216
62396232 description: "Using ` fs .rmdirSync (path, { recursive: true })` on a ` path`
@@ -6271,18 +6264,10 @@ changes:
62716264-->
62726265
62736266* ` path` {string|Buffer|URL}
6274- * ` options` {Object}
6275- * ` maxRetries` {integer} If an ` EBUSY ` , ` EMFILE ` , ` ENFILE ` , ` ENOTEMPTY ` , or
6276- ` EPERM ` error is encountered, Node.js retries the operation with a linear
6277- backoff wait of ` retryDelay` milliseconds longer on each try. This option
6278- represents the number of retries. This option is ignored if the ` recursive`
6279- option is not ` true ` . **Default:** ` 0 ` .
6280- * ` recursive` {boolean} If ` true ` , perform a recursive directory removal. In
6281- recursive mode, operations are retried on failure. **Default:** ` false ` .
6282- **Deprecated.**
6283- * ` retryDelay` {integer} The amount of time in milliseconds to wait between
6284- retries. This option is ignored if the ` recursive` option is not ` true ` .
6285- **Default:** ` 100 ` .
6267+ * ` options` {Object} There are currently no options exposed. There used to
6268+ be options for ` recursive` , ` maxBusyTries` , and ` emfileWait` but they were
6269+ deprecated and removed. The ` options` argument is still accepted for
6270+ backwards compatibility but it is not used.
62866271
62876272Synchronous rmdir(2). Returns ` undefined ` .
62886273
0 commit comments