Skip to content

Commit

Permalink
fixup! fs: remove permissive rmdir recursive
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Feb 18, 2021
1 parent e14cb2f commit ed11b0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -2681,9 +2681,9 @@ changes:

Type: Documentation-only

`fs.rmdir(path, { recursive: true })`, `fs.rmdirSync(path, { recursive:true })`
and `fs.promises.rmdir(path, { recursive:true })` throws
if `path` does not exist or is a file.
`fs.rmdir(path, { recursive: true })`, `fs.rmdirSync(path, { recursive: true })`
and `fs.promises.rmdir(path, { recursive: true })` will be removed in a future
version of Node.js.
Use `fs.rm(path, { recursive: true, force: true })`,
`fs.rmSync(path, { recursive: true, force: true })` or
`fs.promises.rm(path, { recursive: true, force: true })` instead.
Expand Down

0 comments on commit ed11b0e

Please sign in to comment.