cURL / Mailing Lists / curl-users / Single Mail


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

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

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


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,


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

Thanks for help!


List admin:
Received on 2016-04-21