DownloadStream does not forward thread errors
Brought to you by:
arnold_mad,
kurt_tas
FTPConnection.downloadStream
When using the method, the thread has a e.printstack trace preventing the calling method to properly catch the error and solve the error on their side. It also have a huge cost in performance since the script is waiting 60 seconds before retuninr anything. This is a little hack that get the error from the thread and stop waiting as soon as an error is detected.
I only posted the modified method instead of the whole file.
FTPConnection.downloadStream method