diff --git a/lib/fs.js b/lib/fs.js index fa64ae7e53d79c..dc51e042f12168 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -862,7 +862,7 @@ function rmdir(path, options, callback) { path = pathModule.toNamespacedPath(getValidatedPath(path)); if (options && options.recursive) { - options = validateRmOptions( + validateRmOptions( path, { ...options, force: true }, true,