Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: FTP client that continues downloads

by echo (Pilgrim)
on Aug 31, 2001 at 16:01 UTC ( #109359=note: print w/replies, xml ) Need Help??

in reply to FTP client that continues downloads

Use Net::FTP::get($remote_file, $local_file, $offset) where offset is the byte count at which you want to transfer to resume. For example if you have received a partial file, you can check how many bytes you have downloaded with -s $file, and then use that number as the offset argument to Net::FTP::get(). The remaining of the file will be appended to the local file.

Replies are listed 'Best First'.
Re: Re: FTP client that continues downloads
by acid06 (Friar) on Aug 31, 2001 at 20:58 UTC
    Just a little coment about -s $file... it doesn't work as it should if you're running Windows (the file size is only updated when you close the file handle).

    perl -e "print pack('h*', 16369646), scalar reverse $="

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2022-01-20 12:05 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (56 votes). Check out past polls.