From c586113e5b5fda2f6b83e0cbd147e14704b108ab Mon Sep 17 00:00:00 2001 From: Violet <110205356+Violets-puragtory@users.noreply.github.com> Date: Fri, 20 Oct 2023 23:05:41 +0000 Subject: [PATCH] OOPSIES! --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e1eca6d..fc8d61b 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,7 @@ const ytdl = require('ytdl-core'), const PORT = process.env.PORT || 8080 const app = express() if (fs.existsSync(path.join(__dirname, 'cached'))) { - fs.unlinkSync(path.join(__dirname, 'cached')) + fs.rmSync(path.join(__dirname, 'cached'), { recursive: true, force: true}) } fs.mkdirSync(path.join(__dirname, 'cached'))