Return callback with error on fail

pull/3094/head
ioedeveloper 5 years ago
parent 7eb46bd731
commit 9ce71f0ea2
  1. 5
      src/services/sharedFolder.js

@ -112,7 +112,10 @@ module.exports = {
}
if (!isRealPath(path, cb)) return
fs.remove(path, (error) => {
if (error) console.log(error)
if (error) {
console.log(error)
return cb('Failed to remove file/directory: ' + error)
}
cb(error, true)
})
},

Loading…
Cancel
Save