Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Net::FTP resume download

by Xaositect (Friar)
on May 04, 2006 at 15:42 UTC ( [id://547444]=note: print w/replies, xml ) Need Help??


in reply to Net::FTP resume download

If you're just looking for a way to resume a failed transfer, and you know how many bytes you got before it failed, the "get" method supports an offset.

$ftp->get("that.file", "this.file", $bytes_already_downloaded);
You could also try Net::FTP::AutoReconnect, which appears to do something similar to what you want.

Xaositect - Whitepages.com

Replies are listed 'Best First'.
Re^2: Net::FTP resume download
by jdtoronto (Prior) on May 04, 2006 at 16:48 UTC
    Net::FTP::AutoReconnect is nice for hiding some of the intricacies of the FTP session, and it will handle reconnecting and re-establuishment of the environment, but it does not implement a 'resume interupted download' facility. That you will need to write for yourself!

    jdtoronto

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found