(Feature request) Ignore if file exist

Rodrigo s via curl-users <[email protected]> Wed, 13 Nov 2024 11:18:09 -0300
Newsgroups gmane.comp.web.curl.general
Message-ID <CAH8erej3Y5JDJVUhiHB_vrH-xOFdYdvmgDDJ2CEN+y9ZrA6ssQ@mail.gmail.com>
Using this command:

curl example.com?huge_file=[1-1000] -o file#1.zip --parallel

Will work fine. But, let's say the server is unstable, and some files do
not download. I could now write a cmd.exe script to check if the file
exists and then download one by one. Or create a huge line with all missing
files and then use the --parallel

Why not just create a single command "--ignore-if-file-exists"

curl example.com?huge_file=[1-1000] -o file#1.zip --parallel
--ignore-if-file-exists

So I just run this line as many times as I want until I download all files?
Does this kind of command exist? Is there a way to do this using only a
curl command or do I need to use another logic?

-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html