From c1b5e346b89f9f514a00d053d498cf9010b3a8a6 Mon Sep 17 00:00:00 2001 From: Kylart Date: Sun, 5 Mar 2017 21:00:01 +0100 Subject: [PATCH] corrected a bug on delFile function in local page --- src/localPage/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/localPage/functions.js b/src/localPage/functions.js index 366626b..53204e9 100644 --- a/src/localPage/functions.js +++ b/src/localPage/functions.js @@ -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.`)