Subject: Re: Getting filetype

Re: Getting filetype

From: Heiner Steven <>
Date: Wed, 07 Apr 2010 21:31:00 +0200

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.

Received on 2010-04-07