Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Net::FTP resume download

by Xaositect (Friar)
on May 04, 2006 at 15:42 UTC ( #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 -

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!


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2020-10-23 00:51 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (234 votes). Check out past polls.