images moved from dropbox to server dir

This commit is contained in:
coderaiser 2012-06-12 14:52:03 +00:00
parent 906bbb38dc
commit ddfe51c75c
4 changed files with 6 additions and 4 deletions

View file

@ -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;