Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Net::FTP question

by atopolc (Pilgrim)
on Apr 25, 2002 at 14:13 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-24 17:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found