Morris Brodersen
Morris Brodersen
This looks like a hack, the error should be propagated already. Maybe it's an issue with the parallel stream? Might be better to fix that instead.
No problem at all! I'm glad you found an issue and contributed a solution. I'll dig into this many thanks 👍
The error indicates that something with TLS went wrong, which is only used with `secure: true`. I wonder how this could be since `secure` is not in your settings. Which...
Looks like TLS is not available or misconfigured at the target host. Does it work with regular FTP clients when forcing a TLS connection?
Looks like your server requires secure sessions. Try using the `secure: true` option.
SSL/TLS is supported by using `secure: true` in the connection options. However, in my test environments I always get an error from inside node's TLS implementation: https://github.com/joyent/node/issues/9272 - I'm currently...
The tests all pass with parallel=1 and maxConnections=1 on my end - I don't think it's an extra FTP connection that's created here. It's probably just the upload that fails...
Unfortunately, no, because the mscdex/node-ftp dependency does not support that (yet). See this TODO: https://github.com/mscdex/node-ftp/blob/67680c22caaa8621969d6a23c84266eb779b8fdb/TODO - sorry!
Well, kind of - currently they are regular callback-based methods, no streams involved, but they don't support globs (yet). RMDIR does work recursively though, so there's no pressure on that...
Yes we can, there's even a glob method, just didn't get around to add the functioniality to rmdir/delete.