fixed bug with writing new file

This commit is contained in:
coderaiser 2013-04-19 05:35:29 -04:00
parent 540ca88a64
commit 84fdc7e9e5
3 changed files with 7 additions and 4 deletions

View file

@ -77,6 +77,8 @@ is pressed and current file is directory.
* Removed modules cache.js.
* Fixed bug with writing new file.
2012.03.01, Version 0.1.9

View file

@ -31,6 +31,7 @@
- Генереация href файла, который переименовывается.
- Выделение коревой директории клавишей Space
- Обработка выделенной корневой директории.
- Создание нового файла.
**Обновлены:**
- jquery до версии v1.9.1

View file

@ -139,13 +139,13 @@
main.sendError(pParams, pError);
});
else{
var lWriteStream = fs.createWriteStream(p.name);
var lWriteStream = fs.createWriteStream(p.name);
lWriteStream.on('error', function(pError){
main.sendError(pParams, pError);
});
main.sendError(pParams, pError);
});
p.request.on('end', function(){
lWriteStream.on('end', function(){
main.sendResponse(pParams, 'writed: ' + p.name);
});