[Tutor] ftplib.storbinary and using a progress bar

Alan Gauld alan.gauld at btinternet.com
Sun Sep 7 16:38:15 CEST 2008


"Kent Johnson" <kent37 at tds.net> wrote 

> I don't think threading will help here, the problem is that the
> progress information is not available.

If you are transferring from A to B and can find the size of 
the file at A and poll the size at B you can display progress.
OTOH if that is not available you can still use a thread to 
indicate that *something* is happening even if you don't 
know when it will stop. Thus a threaded approach works 
for providing some kind of user feedback even if nothing 
else.

Alan G



More information about the Tutor mailing list