Skip to content

Fix error "No such file" when using SFTP extension on vscode > v1.55.2. #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
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