in reply to Net::SSH2::SFTP stat function
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 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::SSH2::SFTP stat function
by james_ (Novice) on Oct 02, 2008 at 12:20 UTC |