fix get return value if readonly

pull/454/head
yann300 7 years ago
parent 7e61c9b86e
commit 014271da71
  1. 2
      src/services/sharedFolder.js

@ -46,7 +46,7 @@ module.exports = {
isbinaryfile(path, (error, isBinary) => {
if (error) console.log(error)
if (isBinary) {
cb(null, '<binary content not displayed>')
cb(null, {content: '<binary content not displayed>', readonly: true})
} else {
fs.readFile(path, 'utf8', (error, data) => {
if (error) console.log(error)

Loading…
Cancel
Save