summaryrefslogtreecommitdiff
path: root/src/tool_cfgable.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-02-24 10:30:10 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-03-10 19:57:55 +0100
commit08a96c6e4e6cf6a1917a117db1b5394713e3f01f (patch)
tree5c4692cc312e191f61e27c3f45077d92951f0d69 /src/tool_cfgable.h
parent7b0fd39db21a9291b4189d6e5b05ade40b3dce58 (diff)
downloadcurl-08a96c6e4e6cf6a1917a117db1b5394713e3f01f.tar.gz
curl: add --remove-on-error
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 Closes #8503
Diffstat (limited to 'src/tool_cfgable.h')
-rw-r--r--src/tool_cfgable.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tool_cfgable.h b/src/tool_cfgable.h
index a06ef6028..4a420db32 100644
--- a/src/tool_cfgable.h
+++ b/src/tool_cfgable.h
@@ -294,6 +294,8 @@ struct OperationConfig {
struct OperationConfig *prev;
struct OperationConfig *next; /* Always last in the struct */
struct State state; /* for create_transfer() */
+ bool rm_partial; /* on error, remove partially written output
+ files */
};
struct GlobalConfig {