mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-02-26 09:23:36 +00:00
1. Added '.manager' singleton to service-manager.js
2. Updated fs.writeFileSync to support options.mode 3. Updated Linux Task Scheduler
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1664,6 +1664,7 @@ void ILibDuktape_fs_PUSH(duk_context *ctx, void *chain)
|
||||
var fd = this.openSync(dest, options?options.flags:'wb');\
|
||||
this.writeSync(fd, data);\
|
||||
this.closeSync(fd);\
|
||||
if(options && options.mode != null && process.platform != 'win32') { this.chmodSync(dest, options.mode);}\
|
||||
};\
|
||||
exports.CHMOD_MODES = {S_IRUSR: 0o400, S_IWUSR: 0o200, S_IXUSR: 0o100, S_IRGRP: 0o40, S_IWGRP: 0o20, S_IXGRP: 0o10, S_IROTH: 0o4, S_IWOTH: 0o2, S_IXOTH: 0o1};\
|
||||
if(process.platform == 'darwin')\
|
||||
|
||||
Reference in New Issue
Block a user