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!
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.
perlmonks.org content © perlmonks.org and Anonymous Monk, jdtoronto, Xaositect
prlmnks.org © 2006 edmund von der burg (eccles & toad)
v 0.03