mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
minor changes
This commit is contained in:
parent
c159638583
commit
06f9da02bd
2 changed files with 5 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
"api_url" : "/api/v1",
|
||||
"appcache" : false,
|
||||
"minification" : {
|
||||
"js" : true,
|
||||
"js" : false,
|
||||
"css" : true,
|
||||
"html" : false,
|
||||
"img" : true
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue