in reply to Net::SFTP::Foreign hwo to list (ls) files
$sftp->mget("/etc/abcd*.txt", $local_dir);
update: Oops, that would download the files. Use glob if you just want to list them:
or maybe...my $files = $sftp->glob("/etc/abcd*.txt");
my $files = $sftp->glob("/etc/abcd*.txt", names_only => 1);
|
|---|