diff --git a/src/services/sharedFolder.js b/src/services/sharedFolder.js index 98b3f5e35c..76637e78b9 100644 --- a/src/services/sharedFolder.js +++ b/src/services/sharedFolder.js @@ -64,6 +64,10 @@ module.exports = { set: function (args, cb) { var path = utils.absolutePath(args.path, this.sharedFolder) if (fs.existsSync(path) && !isRealPath(path, cb)) return + if (args.content === 'undefined') { // no !!!!! + console.log('trying to write "undefined" ! stopping.') + return + } this.trackDownStreamUpdate[path] = path fs.writeFile(path, args.content, 'utf8', (error, data) => { if (error) console.log(error)