FTP Download Progress?

Is there any way to track/know how the download of a file over FTP is doing? I was hoping there would be Script event or something so I could know a large file transfer wasn't hung (StatusMessage.Progress doesn't help in the OnStatusMessage event)..

Thanks, TJ

Hi TJ

When using the FTP Actions, if you go to the Run tab, you should see an additional progress bar that displays the percentage of the download that has completed. Underneath this you can see the speed figures and the rate of transfer.

Are you able to see this information?

Regards,
Steve

I was hoping there was a way of grabbing progress information programatically, so I can have the script self monitor and correct itself if there are problems... TJ

Hi TJ

Unfortunately there is no way to get this information programatically. A script event that triggered every time the download status progressed would add too much overhead to this operation.

Regards,
Steve

Even a timed, long duration event? Even one that triggered every 5 seconds would be ok by me. The problem is when downloading a large file you have no idea (or indication) that the download is processing or hung.

Case in point I have a script that downloads a >600MB XML file, and often I'm just about to kill the script assuming its nto working... I don't need anything as fine as download speeds etc. but something that triggers an event every x seconds or updates a var that I can monitor in a different thread or something would be nice...

In any case, thanks for looking at. TJ.

I just had a look at this. The api call to download the file is blocking, so the event would need to be fired from another thread, not a simple change (threading within actions is something we tend to avoid where possible). I think we may be able to add some sort of hang detection but it will need some serious thought and research. I will add it to the todo list.

Thanks, I appreciate it, but its by no means the most important thing on the todo list I'm sure. I appreciate you taking the time to look into it though...

TJ