From 2a0470faf99e2947608974a9ee254f36d34f0bdf Mon Sep 17 00:00:00 2001 From: Skot Date: Sun, 3 Nov 2024 19:49:55 -0600 Subject: [PATCH] small change to only-gzip.js to remove warning (#449) --- main/http_server/axe-os/only-gzip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/http_server/axe-os/only-gzip.js b/main/http_server/axe-os/only-gzip.js index bd78cec59..f1c9360f4 100644 --- a/main/http_server/axe-os/only-gzip.js +++ b/main/http_server/axe-os/only-gzip.js @@ -14,7 +14,7 @@ fs.readdir(directory, (err, files) => { if (stats.isDirectory()) { // If it's a directory, call rmdir after deleting its contents - fs.rmdir(filePath, { recursive: true }, (err) => { + fs.rm(filePath, { recursive: true }, (err) => { if (err) throw err; console.log(`Removed directory: ${filePath}`); });