mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
feature(rest) GET: rm kill, zip; PUT: rm cmd
This commit is contained in:
parent
6e213b35e2
commit
4bf246f7ec
1 changed files with 0 additions and 21 deletions
|
|
@ -277,17 +277,6 @@
|
|||
};
|
||||
send(p);
|
||||
break;
|
||||
|
||||
case 'zip':
|
||||
main.sendFile(pParams);
|
||||
break;
|
||||
|
||||
case 'kill':
|
||||
p.data = {
|
||||
mesage: 'Cloud Commander was killed'
|
||||
};
|
||||
send(p);
|
||||
break;
|
||||
|
||||
default:
|
||||
p.data = {
|
||||
|
|
@ -325,16 +314,6 @@
|
|||
});
|
||||
break;
|
||||
|
||||
case 'cmd':
|
||||
main.child_process.exec(p.body, function(pError, pStdout, pStderr) {
|
||||
var lError = pError || pStderr;
|
||||
if (!lError)
|
||||
sendResponse(pParams, pStdout);
|
||||
else
|
||||
sendError(pParams, lError);
|
||||
});
|
||||
break;
|
||||
|
||||
case 'mv':
|
||||
if( Util.checkObjTrue(lFiles, ['from', 'to']) )
|
||||
fs.rename(lFiles.from, lFiles.to, function(pError) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue