Skip to content

Commit 42b65ed

Browse files
bcoejoesepi
authored andcommitted
doc: document rmdir/recursive deprecation
Document deprecation of rmdir/recursive permissive functionality PR-URL: nodejs#35579 Refs: nodejs#35562 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent c3d0936 commit 42b65ed

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/api/deprecations.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2655,6 +2655,20 @@ Type: Documentation-only
26552655
The [`crypto.Certificate()` constructor][] is deprecated. Use
26562656
[static methods of `crypto.Certificate()`][] instead.
26572657

2658+
### DEP0XXX: `fs.rmdir(path, { recursive: true })`
2659+
<!-- YAML
2660+
changes:
2661+
- version: REPLACME
2662+
pr-url: https://github.com/nodejs/node/pull/35579
2663+
description: Documentation-only deprecation.
2664+
-->
2665+
2666+
Type: Documentation-only
2667+
2668+
In future versions of Node.js, `fs.rmdir(path, { recursive: true })` will throw
2669+
on nonexistent paths, or when given a file as a target.
2670+
Use `fs.rm(path, { recursive: true, force: true })` instead.
2671+
26582672
[Legacy URL API]: url.md#url_legacy_url_api
26592673
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
26602674
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3

0 commit comments

Comments
 (0)