Skip to content
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

filestream is not end. #159

Closed
yahao87 opened this issue Dec 18, 2015 · 0 comments
Closed

filestream is not end. #159

yahao87 opened this issue Dec 18, 2015 · 0 comments

Comments

@yahao87
Copy link

yahao87 commented Dec 18, 2015

I am extract after ftp download.
but filestream is open yet.

lib/jsftp.js

Ftp.prototype.get = function(remotePath, localPath, callback)
...

      socket.on('error', callback);
      socket.on('end', callback);
      socket.on('close', callback);

      socket.pipe(writeStream);
      socket.resume();
    };
  }
zlib.js:535
      throw error;
      ^

Error: unexpected end of file

Please I request to close the file stream.end().
I'm used to being added on a temporary basis.

      socket.on('error', callback);
      // socket.on('end', callback);
      // socket.on('close', callback);
      writeStream.on('finish', callback);

I'm sorry bad English.

Thank you good library.

@yahao87 yahao87 changed the title get function is not end. filestream is not end. Dec 18, 2015
@sergi sergi closed this as completed Dec 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants