From 78f433187c1b8f6b6e2df019654322f600288f24 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 28 Mar 2018 10:39:14 +0200 Subject: [PATCH] fix get return value if readonly --- src/services/sharedFolder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/sharedFolder.js b/src/services/sharedFolder.js index 49a330611f..98b3f5e35c 100644 --- a/src/services/sharedFolder.js +++ b/src/services/sharedFolder.js @@ -46,7 +46,7 @@ module.exports = { isbinaryfile(path, (error, isBinary) => { if (error) console.log(error) if (isBinary) { - cb(null, '') + cb(null, {content: '', readonly: true}) } else { fs.readFile(path, 'utf8', (error, data) => { if (error) console.log(error)