mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fixed bug with writing new file
This commit is contained in:
parent
540ca88a64
commit
84fdc7e9e5
3 changed files with 7 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
- Генереация href файла, который переименовывается.
|
||||
- Выделение коревой директории клавишей Space
|
||||
- Обработка выделенной корневой директории.
|
||||
- Создание нового файла.
|
||||
|
||||
**Обновлены:**
|
||||
- jquery до версии v1.9.1
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue