curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

(Feature request) Ignore if file exist

From: Rodrigo s via curl-users <curl-users_at_lists.haxx.se>
Date: Wed, 13 Nov 2024 11:18:09 -0300

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
Received on 2024-11-13