diff --git a/agents/meshcore.js b/agents/meshcore.js index 9eae6e2a..668bf1d3 100644 --- a/agents/meshcore.js +++ b/agents/meshcore.js @@ -700,6 +700,22 @@ function createMeshCore(agent) { if (this.httprequest.uploadFile) { this.write(new Buffer(JSON.stringify({ action: 'uploadstart', reqid: this.httprequest.uploadFileid }))); } break; } + case 'copy': { + // Copy a bunch of files from scpath to dspath + for (var i in cmd.names) { + var sc = obj.path.join(cmd.scpath, cmd.names[i]), ds = obj.path.join(cmd.dspath, cmd.names[i]); + if (sc != ds) { try { fs.copyFileSync(sc, ds); } catch (e) { } } + } + break; + } + case 'move': { + // Move a bunch of files from scpath to dspath + for (var i in cmd.names) { + var sc = obj.path.join(cmd.scpath, cmd.names[i]), ds = obj.path.join(cmd.dspath, cmd.names[i]); + if (sc != ds) { try { fs.copyFileSync(sc, ds); fs.unlinkSync(sc); } catch (e) { } } + } + break; + } } } //sendConsoleText("Got tunnel #" + this.httprequest.index + " data: " + data, this.httprequest.sessionid); diff --git a/package.json b/package.json index b83619e9..1ff473d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.1.5-s", + "version": "0.1.5-t", "keywords": [ "Remote Management", "Intel AMT", diff --git a/views/default.handlebars b/views/default.handlebars index 481d00bd..6ab88ef2 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -288,7 +288,7 @@ - +
 
 
@@ -479,7 +482,7 @@ - +