in reply to Re^2: Net::SSH2::SFTP stat function
in thread Net::SSH2::SFTP stat function

yes, the S_IF* constants from Fcntl tell you the meaning of the remaining bits:
S_IFREG => 32768 S_IFDIR => 16384 S_IFLNK => 40960 S_IFBLK => 24576 S_IFCHR => 8192 S_IFIFO => 4096 S_IFSOCK => 49152
Regarding the compatibility of the different SSH/SFTP modules availables, read this post: Re^3: package that can handle ftp, sftp, http etc ?.

Replies are listed 'Best First'.
Re^4: Net::SSH2::SFTP stat function
by Anonymous Monk on Oct 02, 2008 at 13:25 UTC
    Thanks, using the S_IF* constants works fine!