From 1c7d48399766cb1a0ca48ce57cee16b2478ed842 Mon Sep 17 00:00:00 2001 From: Vlad Filippov Date: Tue, 31 Jan 2023 10:04:17 -0500 Subject: [PATCH] Add recursive --- lib/grunt/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/grunt/file.js b/lib/grunt/file.js index a517fc0b..9619e808 100644 --- a/lib/grunt/file.js +++ b/lib/grunt/file.js @@ -371,7 +371,7 @@ file.delete = function(filepath, options) { try { // Actually delete. Or not. if (!nowrite) { - fs.rmSync(filepath); + fs.rmSync(filepath, { recursive: true, force: true }); } grunt.verbose.ok(); return true;