This commit is contained in:
Violet 2023-10-20 23:05:41 +00:00
parent 924eea1621
commit c586113e5b

View file

@ -8,7 +8,7 @@ const ytdl = require('ytdl-core'),
const PORT = process.env.PORT || 8080 const PORT = process.env.PORT || 8080
const app = express() const app = express()
if (fs.existsSync(path.join(__dirname, 'cached'))) { 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')) fs.mkdirSync(path.join(__dirname, 'cached'))