Help for this page

Select Code to Download


  1. or download this
    use Fcntl ':mode';
    
    ...
      # directory
      ...
    }
    
  2. or download this
    my $ssh2 = Net::SSH2->new();
    my $sftp = $ssh2->sftp();
    ...
    my %fstat = $sftp->stat("${testdir}");
    
    my $perm = $fstat{"mode"} & 07777;