New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
curl: add --remove-on-error #8503
Conversation
This option is actually especially useful when you download N files in parallel with |
Nit: curl manual already uses
Suggestion: either change that or use a new term like |
Ah yes, that's a fine observation... |
|
Also But that is just one of many protocols, of course. A download is only |
I'll wait to see what others think about names. Alternatives to ponder:
|
It also encapsulates nicely the intended consequence for its purpose, which is removal upon an error. |
--remove-on-error and --remove-incomplete are my two favourites.
|
My favorites are That aside: With |
--remove-on-error |
On Thu, Feb 24, 2022 at 10:53 Jay Satiro ***@***.***> wrote:
If a transfer returns an error,
--remove-on-error
i concur
…-bch
—
Reply to this email directly, view it on GitHub
<#8503 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA52YZ53XQHRUQFXIRSJUDU4Z5EDANCNFSM5PG3GE2A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
7a8ac23
to
cdd4a9e
Compare
|
cdd4a9e
to
91cad67
Compare
If a transfer returns an error, using this option makes curl remove the leftover downloded (partial) local file before exiting. Added test 376 to verify
91cad67
to
d22f4eb
Compare
Reported-by: Colin Leroy Bug: #8503 (review)
If a transfer returns an error, using this option makes curl remove the
leftover downloded (partial) local file before exiting.
Added test 375 to verify