[ftputil] FtpUtil Progress Bar
Stefan Schwarzer
sschwarzer at sschwarzer.net
Fri Sep 15 14:11:47 CEST 2006
Hi Valeriy and Ian,
On 2006-09-15 13:39, Valeriy Pogrebitskiy wrote:
> This module is not intended as a command line utility (like standard
> 'ftp')... It is intended to be used within other Python programs through
> the means of function calls. As such, completion of a file upload/download
> is indicated by a return from corresponding function call. What else would
> you need? Intermediate <stdout> output would be undesirable - as it would
> mean unexpected output within other programs.
Ok, ftputil isn't a command line utility. But it may be used to write
them. ;-)
I remember someone asking for a "feedback" feature in upload_if_newer
and download_if_newer to indicate whether a file was uploaded/
downloaded or not. Since then the two methods return a corresponding
boolean value.
In a similar spirit, I could possibly add a callback parameter to the
upload/download methods, but to be consistent it should go with the
conditional versions, too, shouldn't it?
> On the other hand - if Stefan's library does have internal ways of keeping
> track of process's progression - then you could write your own command
> line utility to display dots or percentages...
This might be another way to tackle the problem but as I understand
this would mean to add a "state query" component which may be
overkill.
Ian, _how_ important is the feature for you? "Nice to have" or it is
really annoying for your users to miss the progress (i. e. large
files or slow connections)? In any case, you can file an issue from
http://ftputil.sschwarzer.net/trac/wiki/IssueTracker . If you want
to, send me a mail and I'll add an account for you. (Anonymous
tickets are disabled due to to spam.)
Stefan
More information about the ftputil
mailing list