mirror of
https://github.com/curl/curl.git
synced 2026-07-24 05:27:15 +03:00
curl: make --etag-save acknowledge --create-dirs
Add test 693 to verify Fixes #15730 Suggested-by: Tamir Duberstein Closes #15732
This commit is contained in:
parent
3f8452dde7
commit
31c6b50cb2
4 changed files with 72 additions and 1 deletions
|
|
@ -1976,6 +1976,12 @@ static CURLcode single_transfer(struct GlobalConfig *global,
|
|||
}
|
||||
|
||||
if(config->etag_save_file) {
|
||||
if(config->create_dirs) {
|
||||
result = create_dir_hierarchy(config->etag_save_file, global);
|
||||
if(result)
|
||||
break;
|
||||
}
|
||||
|
||||
/* open file for output: */
|
||||
if(strcmp(config->etag_save_file, "-")) {
|
||||
FILE *newfile = fopen(config->etag_save_file, "ab");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue