Net::FTP resume download
Anonymous Monk
created: 2006-05-04 11:25:07
Hello Monks

I am trying to write an FTP downloader that can resume the download after 20 seconds (or so) of inactivity. I have got Net::FTP installed and downloading, just not resuming after a stalled download.
I haven't a clue how to implement this. Google didn't help much, this seems like a common enough task though that it should have... can anyone point me in the right direction?

Thanks a bunch!

Re: Net::FTP resume download
created: 2006-05-04 11:42:33

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
Re^2: Net::FTP resume download
created: 2006-05-04 12:48:04
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

perlmonks.org content © perlmonks.org and Anonymous Monk, jdtoronto, Xaositect

prlmnks.org © 2006 edmund von der burg (eccles & toad)

v 0.03