From 0ddd75bcd816a8e5f4e27411b8e913abb92c2ed5 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 8 Feb 2021 12:24:06 +0100 Subject: [PATCH] fs: runtime deprecate rmdir recursive option PR-URL: https://github.com/nodejs/node/pull/37302 Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Darshan Sen Reviewed-By: Anto Aravinth --- doc/api/deprecations.md | 14 +++++--- doc/api/fs.md | 33 ++++++++++++------- lib/fs.js | 3 ++ lib/internal/fs/promises.js | 2 ++ lib/internal/fs/utils.js | 24 ++++---------- ...fs-rmdir-recursive-sync-warns-not-found.js | 3 +- ...t-fs-rmdir-recursive-sync-warns-on-file.js | 3 +- ...test-fs-rmdir-recursive-warns-not-found.js | 3 +- .../test-fs-rmdir-recursive-warns-on-file.js | 3 +- test/parallel/test-fs-rmdir-recursive.js | 7 ++++ 10 files changed, 53 insertions(+), 42 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 860d5aa749f10d..9ec966c52635f0 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2671,9 +2671,12 @@ The [`crypto.Certificate()` constructor][] is deprecated. Use ### DEP0147: `fs.rmdir(path, { recursive: true })`