On 3/14/06, Curt Shaffer <[EMAIL PROTECTED]> wrote: > I have a small update to this post. I found out that I will be able to get > all of the files in the remote directory. Unfortunately I do not see a way > to do this with Net::SFTP. There is no mget function and * does not seem to > work for the file name. > Thanks > Curt <snip>
Just loop over the files in the directory. for my $file (map { $_->{filename} } $sftp->ls('/path') { $sftp->get("/path/$file"); } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>