cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Why doesn't set CURLFTP_CREATE_DIR_RETRY when run “curl --ftp-create-dirs”

From: Rich Gray <rgray_at_plustechnologies.com>
Date: Fri, 22 Apr 2016 09:43:13 -0400

Daniel Stenberg wrote:
> Two alternatives we have are:
>
> 1. have --ftp-create-dirs set CURLOPT_FTP_CREATE_MISSING_DIRS to 2
> unconditionally
>
> 2. add a new option that can replace the existing one that allows you to set
> level, or possibly one that sets it to 2 and leave the original one set it
> it to 1.

How about simply adding --ftp-create_dirs2 ?? Normally, I would consider
adding the parm at the end of the option to be hokey, but here it kind of
fits in that the operation is tried twice. Leaves existing behavior alone
and is a trivial option add.

- Rich

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ: https://curl.haxx.se/docs/faq.html
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-04-22