On 04/05/2010 08:35 PM, double wrote:
[...]
> How can I determine if a remote file is a directory? There is a
> "LIBSSH2_SFTP_TYPE_DIRECTORY" defined, but this is nowhere
> used in the source. And the struct LIBSSH2_SFTP_ATTRIBUTES
> does not contain a "type" element.
Have a look at the libssh2_sftp_fstat_ex(3) manual page. the attributes
are similar to what you'd expect in struct stat, stat(2) system call.
Heiner
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-04-07