@@ -3502,8 +3502,6 @@ changes:
35023502 it will emit a deprecation warning with id DEP0013.
35033503-->
35043504
3505- > Stability: 1 - Recursive removal is experimental.
3506-
35073505* `path` {string|Buffer|URL}
35083506* `options` {Object}
35093507 * `maxRetries` {integer} If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or
@@ -3526,6 +3524,12 @@ to the completion callback.
35263524Using `fs.rmdir()` on a file (not a directory) results in an `ENOENT` error on
35273525Windows and an `ENOTDIR` error on POSIX.
35283526
3527+ Setting `recursive` to `true` results in behavior similar to the Unix command
3528+ `rm -rf`: an error will not be raised for paths that do not exist, and paths
3529+ that represent files will be deleted. The permissive behavior of the
3530+ `recursive` option is deprecated, `ENOTDIR` and `ENOENT` will be thrown in
3531+ the future.
3532+
35293533## `fs.rmdirSync(path[, options])`
35303534<!-- YAML
35313535added: v0.1.21
@@ -3549,8 +3553,6 @@ changes:
35493553 `file:` protocol. Support is currently still *experimental*.
35503554-->
35513555
3552- > Stability: 1 - Recursive removal is experimental.
3553-
35543556* `path` {string|Buffer|URL}
35553557* `options` {Object}
35563558 * `maxRetries` {integer} If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or
@@ -3570,6 +3572,12 @@ Synchronous rmdir(2). Returns `undefined`.
35703572Using `fs.rmdirSync()` on a file (not a directory) results in an `ENOENT` error
35713573on Windows and an `ENOTDIR` error on POSIX.
35723574
3575+ Setting `recursive` to `true` results in behavior similar to the Unix command
3576+ `rm -rf`: an error will not be raised for paths that do not exist, and paths
3577+ that represent files will be deleted. The permissive behavior of the
3578+ `recursive` option is deprecated, `ENOTDIR` and `ENOENT` will be thrown in
3579+ the future.
3580+
35733581## `fs.stat(path[, options], callback)`
35743582<!-- YAML
35753583added: v0.0.2
@@ -5451,6 +5459,12 @@ Using `fsPromises.rmdir()` on a file (not a directory) results in the
54515459`Promise` being rejected with an `ENOENT` error on Windows and an `ENOTDIR`
54525460error on POSIX.
54535461
5462+ Setting `recursive` to `true` results in behavior similar to the Unix command
5463+ `rm -rf`: an error will not be raised for paths that do not exist, and paths
5464+ that represent files will be deleted. The permissive behavior of the
5465+ `recursive` option is deprecated, `ENOTDIR` and `ENOENT` will be thrown in
5466+ the future.
5467+
54545468### `fsPromises.stat(path[, options])`
54555469<!-- YAML
54565470added: v10.0.0
0 commit comments