minor changes

This commit is contained in:
coderaiser 2013-02-07 08:56:11 -05:00
parent 9f9aaa0347
commit 20ee329417

View file

@ -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 += '/';