Unverified Commit 78de88fc authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #18 from ethereum/fixSharedFolderSetFile

Check if file exist before testing if it's a link
parents 18f43dba ae2fa152
......@@ -47,7 +47,7 @@ module.exports = {
set: function (args, cb) {
var path = utils.absolutePath(args.path, this.sharedFolder)
if (!isRealPath(path, cb)) return
if (fs.existsSync(path) && !isRealPath(path, cb)) return
this.trackDownStreamUpdate[path] = path
fs.writeFile(path, args.content, '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