mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chore(rest) "deleted" -> "delete: ok"
This commit is contained in:
parent
217acccda3
commit
4eaca18dd3
1 changed files with 4 additions and 3 deletions
|
|
@ -142,6 +142,7 @@
|
|||
else
|
||||
main.sendError(pParams, pError);
|
||||
});
|
||||
|
||||
else {
|
||||
lName = p.name;
|
||||
|
||||
|
|
@ -179,7 +180,7 @@
|
|||
if(lQuery === 'dir')
|
||||
fs.rmdir(p.name, function(pError){
|
||||
if(!pError)
|
||||
main.sendResponse(pParams, 'Folder ' + p.name + ' deleted.');
|
||||
main.sendResponse(pParams, 'delete: ok("' + p.name + '")');
|
||||
else
|
||||
main.sendError(pParams, pError);
|
||||
});
|
||||
|
|
@ -213,7 +214,7 @@
|
|||
fs.unlink(d.name, log);
|
||||
|
||||
if(lAssync === n && !p.error)
|
||||
main.sendResponse(pParams, 'Files deleted: ' + pBody);
|
||||
main.sendResponse(pParams, 'delete: ok("' + pBody + '")');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -229,7 +230,7 @@
|
|||
}else
|
||||
fs.unlink(p.name, function(pError){
|
||||
if(!pError)
|
||||
main.sendResponse(pParams, 'File ' + p.name + ' delete.');
|
||||
main.sendResponse(pParams, 'delete: ok(' + p.name + '")');
|
||||
else
|
||||
main.sendError(pParams, pError);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue