Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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).

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2019-06-15 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (76 votes). Check out past polls.

    Notices?