cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SFTP create missing directories

From: James Housley <jim_at_thehousleys.net>
Date: Tue, 12 Jun 2007 11:35:46 -0400

On Jun 12, 2007, at 11:21 AM, Tom Regner wrote:

> On Tuesday, 12. June 2007, James Housley wrote:
>> I think I will use opendir because I feel the results will be better
>> defined. But I have testing to do, one question is if we want to
>> upload to a directory "something", but there already is a file called
>> "something"....
> In the application I develop, this must fail - and I think it
> should fail in
> any case.
>
> I append a third patch in which I tried to follow your suggestions
> as I
> understood them - I might be completly off the mark though - the
> new version
> tries to open the target directory and if that failes calls the
> sftp_create_dirs function as before.
>
> In either place I would like to react more specific on the cause of
> failure
> (in case of failure) - to get to a point where I try to continue
> only if its
> sane behaviour - but all I get as return codes from libssh2 are
> LIBSSH2_FX_FAILURE, so at the moment my code continues in that case
> too, as
> before.

I will look at this patch and try merging with my code or just
following your logic.

Thanks,
Jim

--
/"\   ASCII Ribbon Campaign  .
\ / - NO HTML/RTF in e-mail  .
  X  - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
jeh@FreeBSD.org      http://www.FreeBSD.org     The Power to Serve
jim@TheHousleys.Net  http://www.TheHousleys.net
---------------------------------------------------------------------
Fortune Not Found:
Abort, Retry, Ignore?
Received on 2007-06-12