curl-library
Re: sftp postquote command rename fix/diff question
Date: Wed, 9 May 2007 22:51:01 +0200
* Dan Fandrich <dan_at_coneharvesters.com> [2007-05-09 22:46:32]:
> On Wed, May 09, 2007 at 10:20:04PM +0200, Kristian Gunstone wrote:
> > Yes, I suppose you're right. However, the error returned is
> > LIBSSH2_FX_FAILURE, or "Operation failed".
>
> Yes, this is a known problem with curl's SSH support. Patches would
> be welcome!
>
> > This could pretty much be anything unless you actually
> > called libssh2_sftp_stat from outside libcurl, which would seem to
> > make libcurl almost redundant for this use.
> >
> > Do you have a suggestion how I could solve this dilemman or come with a
> > better general solution?
>
> The curl functions sftp_libssh2_error_to_CURLE and
> libssh2_session_error_to_CURLE are the obvious places to add more
> verbose error reporting. Existing curl error codes for similar errors
> can be reused.
I'm working on a new method which just returns LIBSSH2_FX_FILE_ALREADY_EXISTS
if fstat succeeds on the destination file.
I think this seems like a nice solution - I'll be done in a bit!
>
> >>> Dan
> --
> http://www.MoveAnnouncer.com The web change of address service
> Let webmasters know that your web site has moved
-- Kristian Gunstone http://www.pulia.nuReceived on 2007-05-09