OOPSIES!
This commit is contained in:
parent
924eea1621
commit
c586113e5b
1 changed files with 1 additions and 1 deletions
2
index.js
2
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'))
|
||||
|
|
Loading…
Reference in a new issue