mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
minor changes
This commit is contained in:
parent
9f9aaa0347
commit
20ee329417
1 changed files with 9 additions and 4 deletions
|
|
@ -112,7 +112,7 @@
|
|||
};
|
||||
|
||||
if(n){
|
||||
var i, lDirPath = getCleanPath(lReq);
|
||||
var i, lDirPath = getDirPath(lReq);
|
||||
|
||||
for(i = 0; i < n; i++){
|
||||
var lName = lDirPath + lFiles[i],
|
||||
|
|
@ -187,11 +187,10 @@
|
|||
/* данные о файлах в формате JSON*/
|
||||
var lJSON = [],
|
||||
lJSONFile = {},
|
||||
lList,
|
||||
lDirPath = getCleanPath(lReq);
|
||||
lList;
|
||||
|
||||
lJSON[0] = {
|
||||
path : lDirPath,
|
||||
path : getDirPath(lReq),
|
||||
size : 'dir'
|
||||
};
|
||||
|
||||
|
|
@ -397,6 +396,12 @@
|
|||
var lPath = getPath(pReq),
|
||||
lRet = Util.removeStr(lPath, [NO_JS, FS]) || main.SLASH;
|
||||
|
||||
return lRet;
|
||||
}
|
||||
|
||||
function getDirPath(pReq){
|
||||
var lRet = getCleanPath(pReq);
|
||||
|
||||
if(lRet !== '/')
|
||||
lRet += '/';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue