mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fixed agent 'msg' dispatching.
This commit is contained in:
parent
9453ee9ba3
commit
bcf5cfbb5e
3 changed files with 202 additions and 234 deletions
|
@ -645,7 +645,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||
}
|
||||
else if ((command.fileop == 'rename') && (common.IsFilenameValid(command.oldname) == true) && (common.IsFilenameValid(command.newname) == true)) {
|
||||
// Rename
|
||||
try { fs.renameSync(path + "/" + command.oldname, path + "/" + command.newname); } catch (e) { }
|
||||
try { fs.renameSync(path + '/' + command.oldname, path + '/' + command.newname); } catch (e) { }
|
||||
}
|
||||
else if ((command.fileop == 'copy') || (command.fileop == 'move')) {
|
||||
if (common.validateArray(command.names, 1) == false) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue