Can't you do a ls -la and get a list? It will tell you if something is a directory or link.
my $chan = $ssh2->channel(); $chan->blocking(0); $chan->exec('ls -la'); while (<$chan>){ print; # regex the output here to determine what to get }
In reply to Re: Net::SSH2::SFTP stat function
by zentara
in thread Net::SSH2::SFTP stat function
by james_
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |