Skip to content

Commit ed11b0e

Browse files
committed
fixup! fs: remove permissive rmdir recursive
1 parent e14cb2f commit ed11b0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/deprecations.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2681,9 +2681,9 @@ changes:
26812681

26822682
Type: Documentation-only
26832683

2684-
`fs.rmdir(path, { recursive: true })`, `fs.rmdirSync(path, { recursive:true })`
2685-
and `fs.promises.rmdir(path, { recursive:true })` throws
2686-
if `path` does not exist or is a file.
2684+
`fs.rmdir(path, { recursive: true })`, `fs.rmdirSync(path, { recursive: true })`
2685+
and `fs.promises.rmdir(path, { recursive: true })` will be removed in a future
2686+
version of Node.js.
26872687
Use `fs.rm(path, { recursive: true, force: true })`,
26882688
`fs.rmSync(path, { recursive: true, force: true })` or
26892689
`fs.promises.rm(path, { recursive: true, force: true })` instead.

0 commit comments

Comments
 (0)