[Libssh] sftp - determining directory item types

Mike Taylor mike at codeshorts.ca
Thu May 15 13:43:33 CEST 2008


Hello all,

I've recently picked up libssh and everything is going very well.

I did hit a problem however.  I'm reading the elements of a directory  
via sftp and I noticed that the "type" field is not set in the  
SFTP_ATTRIBUTES structure.  That means I cannot tell which directory  
entries are files and which are directories.  Knowing that is pretty  
fundamental to what I'm doing.

Any suggestions would be greatly appreciated!  I'm willing to help out  
and submit a patch if need be.

/\/\ike




More information about the Libssh mailing list