curl-library
RE: Problems creating a directory tree with FTP
Date: Mon, 5 Aug 2002 14:58:02 +0200 (MET DST)
On Thu, 1 Aug 2002, Gerard Cheng wrote:
> I am using libCurl so to imitate your code snippet I needed to make a series
> of calls to curl_easy_perform() with:
> CURLOPT_NOBODY=true
> CURLOPT_HEADER=false
> so that no FTP transfer occurs. In each, I tested CWD for each subdirectory
> of the tree using a QUOTE. For example:
> CWD a
> If the return is CURLE_FTP_QUOTE_ERROR, I append a QUOTE to the actual file
> transfer command to call MKD on that directory:
> MKD a
>
> Repeat this for a/b, a/b/c and so on. Then the actual file transfer will
> create any subdirectories required.
>
> However, with libcurl version 7.9.7 I found that in my testing loop when
> there should be no transfer, I *intermittantly* get the error
> CURLE_FTP_COULDNT_STOR_FILE? Why should it be trying to store a file?
I don't know. Can you provide a fully working code snippet that makes this
problem occur? Or can you possibly single-step into it with a debugger to see
why it think it should upload a file...
-- Daniel Stenberg -- curl related mails on curl related mailing lists please ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sfReceived on 2002-08-05