cavaliergopher / grab

A download manager package for Go
BSD 3-Clause "New" or "Revised" License
1.38k stars 151 forks source link

Get the resp.Size first, then download it #39

Closed fslove closed 5 years ago

fslove commented 5 years ago

Have a file locally, size: 800kb Download if the remote file size is larger than 800kb

cavaliercoder commented 5 years ago

Hi, I'd love to help with your issue, but it isn't clear to me what you need. Can you please elaborate the problem you are trying to solve?

Grab will already download the remote file if it is larger than the local file. It will overwrite it if NoResume==true.

senioi commented 5 years ago

thanks for your help.