ftplib storbinary method interception

Bablos angband at blueyonder.co.uk
Sat Jun 3 19:13:10 EDT 2000


Hi There...

As my ISP has recently moved over to a new server, I've discovered
that none of my current software is compatable for FTP uploads and the
like, so I've decided to put my Python knowledge to some use and
actually write my own little FTP client.

I'm currently using the storbinary method for transferring files, but
during the transfer of large files I'm oblivious to how far through
the transfer I currently am.  I'd like to have at least some
indication that I've transferred xx% of the file, or 100,000 bytes so
far.  Obviously, storbinary doesn't have such a capability, but is
there some code buried out there that does?

Please don't tell me I'm going to have to rewrite chunks of ftplib.py
- I'm well and truly a beginner with Python...

Hope someone can help!


Bablos.



More information about the Python-list mailing list