(Feature request) Ignore if file exist

2024-11-13 Thread Rodrigo s via curl-users
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


Re: (Feature request) Ignore if file exist

2024-11-13 Thread Rodrigo s via curl-users
Arg. I search it! I didn't find... My bad...

I will execute a seppuku <https://en.wikipedia.org/wiki/Seppuku> for my
incompetence :(

Em qua., 13 de nov. de 2024 às 11:44, Tobias Wendorff <
tobias.wendo...@tu-dortmund.de> escreveu:

> Am 2024-11-13 15:18, schrieb Rodrigo s via curl-users:
> > Why not just create a single command "--ignore-if-file-exists"
>
> Got recently added as `--skip-existing`:
> https://github.com/curl/curl/pull/13993
>
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html