in reply to Re: Re: FTP Transfer Status
in thread FTP Transfer Status
The way that i found to achieve this is to create a function that can track the status and output the results to screen. I then looked at how the hash function in the NET::FTP module worked and then instead of outputting a # for every byte sent or received I made it call my function supplying it with the bytes that have been transferred.
You can then calculate on the fly the % remaining and calculate average times etc.....
One hint is to make sure you flush the output from your script to the browser instead of buffering it. There are some good nodes on how to disable output buffering.
I hope this points you in the right direction.
If you need any pointers then let me know.
Alistair
|
|---|