minor changes

This commit is contained in:
coderaiser 2013-02-01 03:55:43 -05:00
parent c159638583
commit 06f9da02bd
2 changed files with 5 additions and 2 deletions

View file

@ -2,7 +2,7 @@
"api_url" : "/api/v1",
"appcache" : false,
"minification" : {
"js" : true,
"js" : false,
"css" : true,
"html" : false,
"img" : true

View file

@ -360,7 +360,7 @@
if(pStat.isDirectory())
Fs.readdir(DirPath, CloudServer._readDir);
/* отдаём файл */
else {
else if(pStat.isFile()){
Fs.readFile(DirPath, CloudServer.getReadFileFunc(DirPath));
Util.log('reading file: '+ DirPath);
}
@ -385,6 +385,9 @@
CloudServer.sendResponse(null, pError.toString(), DirPath);
return;
}
/* Если мы не в корне добавляем слеш к будующим ссылкам */
if(DirPath !== '/')
DirPath += '/';
pFiles = pFiles.sort();