Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    my $sftp = Net::SFTP->new($host, %args);
    my $ls = $sftp->ls('/sample/path');
    print "$_->{filename}\n" for (@$ls);