cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_CREATE_MISSING_DIRS and empty folders

From: Silex <silex0r_at_gmail.com>
Date: Sun, 19 Feb 2006 14:39:06 +0100

>
> However, I don't see any good reason to create the 'bar' dir unless there
> is
> any file in it, and if there is one or more files in it you can simply
> send
> them and ignore the "dir-only" case.

I can't comment too much on this but basically we have to do it and there's
no way around :)

> From our discussion, I understand I should do smth like set the url to
> > ftp://server.com/bar/ then set the options CREATE_MISSING_DIRS and
> NOBODY ?
> > Did I get it right ?
>
> Yes.
>
> I think libcurl should return an error if you try to upload (without
> NOBODY
> set to non-zero) when the URL has no file part.

From my experience it doesn't return an error (libcurl 7.15.1), it just
stores the (nil) file.

Anyway, thank you !
Great help as usual ;)

Philippe Vaucher
Received on 2006-02-19