Subject: Re: sftp stat error - LIBSSH2_ERROR_SFTP_PROTOCOL

Re: sftp stat error - LIBSSH2_ERROR_SFTP_PROTOCOL

From: Alexander Lamaison <swish_at_lammy.co.uk>
Date: Sun, 18 Apr 2010 20:23:52 +0100

On 16 April 2010 06:03, Phillip Wu <Phillip.Wu_at_lpma.nsw.gov.au> wrote:
>
>    status=libssh2_sftp_stat(sftp_session,buf,&fileinfo);
>
> I'm getting error -31 (LIBSSH2_ERROR_SFTP_PROTOCOL) and on calling
>
> libssh2_sftp_last_error(sftp_session, I get error 2.

2 is LIBSSH2_FX_NO_SUCH_FILE. Perhaps your file is a broken symlink
in which case only libssh2_sftp_lstat would report the link's
existence. libssh2_sftp_stat reports the target file's metadata.

> This message is intended for the addressee named and may contain
> confidential information.

Then you probably shouldn't have sent it to a public mailing list.

Alex
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-04-18