Commit 014271da authored by yann300's avatar yann300

fix get return value if readonly

parent 7e61c9b8
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment