mirror of https://github.com/Kylart/KawAnime.git
corrected a bug on delFile function in local page
This commit is contained in:
parent
23b9966258
commit
c1b5e346b8
|
@ -93,7 +93,7 @@ exports.playFile = (name) => {
|
|||
}
|
||||
|
||||
exports.delFile = (object, name) => {
|
||||
const namePath = path.join(DIR, name)
|
||||
const namePath = path.join(self.DIR, name)
|
||||
|
||||
fs.unlink(namePath, () => {
|
||||
console.log(`${name} was deleted.`)
|
||||
|
|
Loading…
Reference in New Issue