Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
doc: document rmdir/recursive deprecation
Document deprecation of rmdir/recursive permissive functionality
  • Loading branch information
bcoe committed Oct 9, 2020
commit 33a63261c368c4cd6be47ee22153a559af92ea01
14 changes: 14 additions & 0 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -2655,6 +2655,20 @@ Type: Documentation-only
The [`crypto.Certificate()` constructor][] is deprecated. Use
[static methods of `crypto.Certificate()`][] instead.

### DEP0XXX: `fs.rmdir(path, { recursive: true })`
<!-- YAML
changes:
- version: REPLACME
pr-url: https://github.com/nodejs/node/pull/35562
description: Runtime deprecation.
Comment thread
bcoe marked this conversation as resolved.
Outdated
-->

Type: Documentation-only

`fs.rmdir(path, { recursive: true })` will throw on nonexistent paths, or when
Comment thread
bcoe marked this conversation as resolved.
Outdated
given a file as a target. Use `fs.rm(path, { recursive: true, force: true })`
instead.

[Legacy URL API]: url.md#url_legacy_url_api
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
Expand Down