Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/sftp.js
Original file line number Diff line number Diff line change
Expand Up @@ -2728,6 +2728,8 @@ function ReadStream(sftp, path, options) {

// For backwards compat do not emit close on destroy.
options.emitClose = false;
// Fix error No such file.
options.autoDestroy = false;

ReadableStream.call(this, options);

Expand Down Expand Up @@ -2926,6 +2928,8 @@ function WriteStream(sftp, path, options) {

// For backwards compat do not emit close on destroy.
options.emitClose = false;
// Fix error No such file.
options.autoDestroy = false;

WritableStream.call(this, options);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ssh2-streams",
"version": "0.4.10",
"version": "0.4.11",
"author": "Brian White <[email protected]>",
"description": "SSH2 and SFTP(v3) client/server protocol streams for node.js",
"main": "./index",
Expand Down