Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Net::FTP question

by atopolc (Pilgrim)
on Apr 25, 2002 at 14:13 UTC ( #161959=note: print w/replies, xml ) Need Help??


in reply to Reporting Progress With Net::FTP (was : Net::FTP question)

Net::FTP supports the size command so you can get the bytes just from calling size but this only works if remote host supports it so you will probably want to check to see if size is supported. If size is not supported then you would probably want to roll your own at that point. Here is how I do it..
if ($self->supported(size)) { my $ret=$self->size($file); print "\t$ret bytes transferred\n"; } else { #see earlier example }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://161959]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2021-12-02 04:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (17 votes). Check out past polls.

    Notices?