Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / A little FTP progress Bar [requires BlueGUI]

Author
Message
Bored of the Rings
17
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 5th Apr 2022 07:24 Edited at: 5th Apr 2022 11:01


If you remove the Set Cursor statement there is a slow down in speed. Obviously, we can remove the print statements and rely solely on the progress bar to do it's job.
Notice also the calculation of the bps and Mbps.

if you are new to programming and wondering what .bits is, this is the file size * 8 , i.e. ftpfiles().bits = fsz * 8 where fsz is e.g. file size({your filename})

Of course , I have divided the duration end by 1000 to produce the result in seconds and not milliseconds
Pro Programmer / Data Scientist, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others

Login to post a reply

Server time is: 2022-05-21 12:35:18
Your offset time is: 2022-05-21 12:35:18