mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-26 09:24:07 +00:00
images moved from dropbox to server dir
This commit is contained in:
parent
906bbb38dc
commit
ddfe51c75c
4 changed files with 6 additions and 4 deletions
|
|
@ -244,13 +244,15 @@ CloudServer._controller=function(pReq, pRes)
|
|||
* ни о том, что это корневой
|
||||
* каталог - загружаем файлы проэкта
|
||||
*/
|
||||
console.log(lFS_s+pathname);
|
||||
if(pathname.indexOf(lFS_s)<0 &&
|
||||
pathname.indexOf(lNoJS_s)<0 &&
|
||||
pathname!=='/'){
|
||||
/* если имена файлов проекта - загружаем их*/
|
||||
/* убираем слеш и читаем файл с текущец директории*/
|
||||
lName=Path.basename(pathname);
|
||||
//lName=Path.basename(pathname);
|
||||
|
||||
/* добавляем текующий каталог к пути */
|
||||
lName='.'+pathname;
|
||||
console.log('reading '+lName);
|
||||
/* сохраняем указатель на responce и имя */
|
||||
CloudServer.Responses[lName]=pRes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue