fix get return value if readonly

pull/3094/head
yann300 7 years ago
parent c65f7f399a
commit 78f433187c
  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