jsftp
jsftp copied to clipboard
not handling a 426 error on download
I'm downloading large files via https://github.com/sergi/jsftp/blob/master/lib/jsftp.js#L449 with the option to get a stream not have jsftp do the download for me.
Some FTP servers cancel the download with a 426 Transfer aborted. I have two problems:
- I cannot see how to handle this error in my client code, any suggestions? There are no errors on the socket.
- I am concerned about a race condition in the command queue. parseResonse handles the 426 calling the nextCommand's callback, however this callback does not belong to the 426.
Hi, can you share the code you are (were) using?