On Thu, Oct 22, 2020 at 03:43:33PM -0500, 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?
I'm pretty sure you'll have to do it the same way as on a local filesystem—call stat on each file name in the directory. Dan _______________________________________________ libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel