|
|
@ -47,7 +47,7 @@ module.exports = { |
|
|
|
|
|
|
|
|
|
|
|
set: function (args, cb) { |
|
|
|
set: function (args, cb) { |
|
|
|
var path = utils.absolutePath(args.path, this.sharedFolder) |
|
|
|
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 |
|
|
|
this.trackDownStreamUpdate[path] = path |
|
|
|
fs.writeFile(path, args.content, 'utf8', (error, data) => { |
|
|
|
fs.writeFile(path, args.content, 'utf8', (error, data) => { |
|
|
|
if (error) console.log(error) |
|
|
|
if (error) console.log(error) |
|
|
|