Subject: Re: Distinguishing directories versus files

Re: Distinguishing directories versus files

From: Will Cosgrove <>
Date: Thu, 22 Oct 2020 13:58:48 -0700

The easiest way is look at their permissions, directory permissions start with a ā€˜dā€™.


> On Oct 22, 2020, at 1:43 PM, Michael Loutris <> wrote:
> I was successful in retrieving the contents of a server's directory, but when I looked at the attributes, I didn't see anyway to identify a directory versus normal files. I am working on SFTP communication between to Windows devices.
> Is there a way to tell an ordinary file from other file types when requesting the directory contents via SFTP with libssh2?
> Thank you
> _______________________________________________
> libssh2-devel

Received on 2020-10-22