mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
chore(rest) "){" -> ") {"
This commit is contained in:
parent
b2fc62334e
commit
53420f1154
1 changed files with 4 additions and 4 deletions
|
|
@ -179,7 +179,7 @@
|
|||
else
|
||||
main.sendError(pParams, pError);
|
||||
});
|
||||
else if (lQuery === 'files'){
|
||||
else if (lQuery === 'files') {
|
||||
getBody(p.request, function(pBody) {
|
||||
var lFiles = Util.parseJSON(pBody),
|
||||
n = lFiles.length,
|
||||
|
|
@ -187,7 +187,7 @@
|
|||
log = Util.retExec(Util.log),
|
||||
lAssync = 0;
|
||||
|
||||
function stat(pStat){
|
||||
function stat(pStat) {
|
||||
var lRet = Util.checkObjTrue(pStat, 'params') &&
|
||||
Util.checkObjTrue(pStat.params, 'name');
|
||||
|
||||
|
|
@ -248,7 +248,7 @@
|
|||
var p = pParams,
|
||||
lCmd = p.command;
|
||||
|
||||
switch(lCmd){
|
||||
switch(lCmd) {
|
||||
case '':
|
||||
p.data = {
|
||||
info: 'Cloud Commander API v1'
|
||||
|
|
@ -317,7 +317,7 @@
|
|||
|
||||
case 'mv':
|
||||
if( Util.checkObjTrue(lFiles, ['from', 'to']) )
|
||||
fs.rename(lFiles.from, lFiles.to, function(pError){
|
||||
fs.rename(lFiles.from, lFiles.to, function(pError) {
|
||||
if(!pError)
|
||||
main.sendResponse(pParams);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue