mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
minor changes
This commit is contained in:
parent
8c4fb9c4ab
commit
f8e47930bd
2 changed files with 13 additions and 10 deletions
|
|
@ -58,6 +58,7 @@
|
|||
});
|
||||
else
|
||||
sendResponse({
|
||||
name : lPath,
|
||||
status : FILE_NOT_FOUND,
|
||||
data : pError.toString(),
|
||||
request : p.request,
|
||||
|
|
@ -79,7 +80,7 @@
|
|||
*/
|
||||
function readDir(pParams){
|
||||
var lRet,
|
||||
lError, lFiles, lHTTP,
|
||||
lError, lFiles, lHTTP, lDirPath,
|
||||
lReq, lRes;
|
||||
|
||||
if(pParams){
|
||||
|
|
@ -91,6 +92,7 @@
|
|||
lReq = lHTTP.request,
|
||||
lRes = lHTTP.response;
|
||||
lRet = true;
|
||||
lDirPath = getDirPath(lReq);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -112,9 +114,7 @@
|
|||
};
|
||||
|
||||
if(n){
|
||||
var i, lDirPath = getDirPath(lReq);
|
||||
|
||||
for(i = 0; i < n; i++){
|
||||
for(var i = 0; i < n; i++){
|
||||
var lName = lDirPath + lFiles[i],
|
||||
lParams = {
|
||||
callback : lFill,
|
||||
|
|
@ -131,10 +131,11 @@
|
|||
}
|
||||
else
|
||||
sendResponse({
|
||||
status : FILE_NOT_FOUND,
|
||||
data : lError.toString(),
|
||||
name : lDirPath,
|
||||
request : lReq,
|
||||
response: lRes
|
||||
response: lRes,
|
||||
status : FILE_NOT_FOUND
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -279,17 +280,16 @@
|
|||
},
|
||||
|
||||
lProccessed = Util.exec(IndexProcessingFunc, {
|
||||
additional : c.list,
|
||||
data : p.data,
|
||||
additional : c.list
|
||||
name : INDEX
|
||||
});
|
||||
|
||||
if(lProccessed)
|
||||
p.data = lProccessed;
|
||||
|
||||
if (!p.Error){
|
||||
lParams.name = INDEX;
|
||||
lParams.data = p.data;
|
||||
|
||||
Util.log('file ' + c.name + ' readed');
|
||||
}
|
||||
else{
|
||||
|
|
|
|||
|
|
@ -135,8 +135,11 @@ Util = exports || {};
|
|||
var lProp = pTrueArr[i];
|
||||
lRet = pObj[lProp];
|
||||
|
||||
if( !lRet)
|
||||
if( !lRet){
|
||||
Util.logError(lProp + ' not true!');
|
||||
Util.log(pObj);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue