Quote:
Originally Posted by willisgt
So I'm still looking for a solution that will update the progress bar during an ftp file download.
|
As the FTP thread will be blocked during file transfer because it is a synchronous operation there is no way to do it from that thread unless you are downloading mutiple files when you could update progress from that thread between files.
I can't think of anyway of monitoring the progress of a synchronous process other than what dzt suggested in post #3 i.e. monitor something that is changing from the main or another thread thread. In this case, as he suggested, the size of the downloading file. However as the file is presumably open during the download I don't know if the returned size would be anything other than zero until it is closed - nor indeed whether it would locked and inaccessible. Only a trial would tell.