skip a #curl transfer
- If the target file already exists on disk, skip downloading it.
https://daniel.haxx.se/blog/2024/08/17/skip-a-curl-transfer/
This entry was edited (1 month ago)
daniel:// stenberg:// reshared this.
This website is tracked using the Matomo analytics tool. If you do not want that your visits are logged in this way you can set a cookie to prevent Matomo / Piwik from tracking further visits of the site (opt-out).
m_eiman
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to m_eiman • • •thewanderer
in reply to daniel:// stenberg:// • • •Daniel
in reply to daniel:// stenberg:// • • •Interesting! By default if a download fails halfway through, will there be a partially downloaded file kept around?
Meaning if I run this command the first time kicking off a download, but this download fails, the 2nd time I run it'll always skip since the file exists already.
daniel:// stenberg://
in reply to Daniel • • •Daniel
in reply to daniel:// stenberg:// • • •Thomas Guyot-Sionnest
in reply to daniel:// stenberg:// • • •Wouldn't a resume option do the same and more?
I could see where skipping files could be useful, but imho it's easy to deal with in scripts, resuming OTOH isn't and would skip files if the size match (possibly with a variant to skip if length can't be pre-determined or transfer can't be resumed...).
daniel:// stenberg://
in reply to Thomas Guyot-Sionnest • • •