cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Using CURLOPT_FTP_CREATE_MISSING_DIRS

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 30 Sep 2004 20:34:29 +0200 (CEST)

On Thu, 30 Sep 2004 Don_Marino_at_May-Co.com wrote:

> I have set this option using curl_easy_setopt but it does not appear to be
> doing what I think it ought to do. I think it ought to create the directory
> if it does not exist.

What libcurl version is this? It seems you might be using a version that
doesn't support this option, but yet your header file has it defined!

> => Send header, 9 bytes (0x9)
> 0000: CWD isp
> <= Recv header, 37 bytes (0x25)
> 0000: 550 isp: No such file or directory.

This should've been followed by a MKD and then a CWD again to that dir.

> curl_easy_setopt( curl,
> CURLOPT_FTP_CREATE_MISSING_DIRS,
> lMissingDirs );

I assume lMissingDirs is a 'long' that is non-zero here?

What does the curl_easy_setopt() function return here?

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-09-30