Thanks for replying salva!
The problem I have is that I can't figure out a way to read the entries. I can't use Net::SFTP::Foreign at all since I'm on a windows and cygwin is not responding to my pleading :D Is there some other way to get this information from the opendir command?
| [reply] |
# untested!
my $sftp = $ssh2->sftp;
my $dh = $sftp->opendir($dir);
while (my %entries = $dh->read) {
print "$_\n" for keys %entries;
}
BTW, Net::SFTP::Foreign works with ActiveState and Strawberry versions of perl. | [reply] [d/l] |
When I run it I just get:
uid, mode, mtime, name, atime, size, gid, uid
Over and over again instead of getting the 3 files in the folder I defined :(
Still thank you for trying!
Net::SFTP::Foreign needs IO/Pty.pm which is only supported on windows if you run it with cygwin which for me still creates a bunch of problems :(
| [reply] |