cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: Wanghui (John) <john.wanghui_at_huawei.com>
Date: Thu, 21 Apr 2016 16:20:00 +0800

-------- Forwarded Message --------

Hi,

I found that CURLOPT_FTP_CREATE_MISSING_DIRS could be set to 2 to allow MKD to fail once and retry the CWD afterwards.

It’s especially useful if you're doing many simultanoes connections against the same server and they all have this option enabled,

as then CWD may first fail but then another connection does MKD before this connection and thus MKD fails but trying CWD works!

But when running curl command line tool with --ftp-create-dirs, CURLOPT_FTP_CREATE_MISSING_DIRS is only set to 1.

/* new in curl 7.10.7, extended in 7.19.4 but this only sets 0 or 1 */

        my_setopt(curl, CURLOPT_FTP_CREATE_MISSING_DIRS,

                  config->ftp_create_dirs?1L:0L);

Could curl command line tool offer an option to set CURLOPT_FTP_CREATE_MISSING_DIRS to be 2?

Thanks for help!

Frank.Yang

-------------------------------------------------------------------
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-21