[Libssh] sftp - determining directory item types
Mike Taylor
mike at codeshorts.ca
Thu May 15 16:29:04 CEST 2008
Hi Aris,
I don't see a function to get the sftp version, however the
SFTP_SESSION structure's server_version member is set to 3. Also,
I've traced the code though the sftp_parse_attr_3 function.
Cheers!
/\/\ike
On 15-May-08, at 9:49 AM, Aris Adamantiadis wrote:
> Hello,
>
> I wouldn't trust the first character. The SFTP_ATTRIBUTE structure is
> badly designed because the sftp draft completely changed it at every
> version. So, to answer correctly your question i'd need the version of
> the sftp protocol your server is speaking. (I think there is a libssh
> function to tell that).
>
> Regards,
> Aris
More information about the Libssh
mailing list