spmjs / node-scp2

[MAINTAINER WANTED] A pure javascript scp program based on ssh2.
384 stars 96 forks source link

Download of nonexistent files generate file descriptor leak #106

Open giancarloscolaro opened 6 years ago

giancarloscolaro commented 6 years ago

Protecting the download function when the remote file doesn't exist. This prevents file descriptor leak and creating a empty local file.

giancarloscolaro commented 6 years ago

Perhaps this fixes the issue #51