Return true on file/directory remove success

remixd
ioedeveloper 5 years ago
parent 520c6bf043
commit 114086406f
  1. 4
      src/services/sharedFolder.js

@ -111,9 +111,9 @@ module.exports = {
return cb('File not found ' + path)
}
if (!isRealPath(path, cb)) return
fs.remove(path, (error, data) => {
fs.remove(path, (error) => {
if (error) console.log(error)
cb(error, data)
cb(error, true)
})
},

Loading…
Cancel
Save