perl - Not able to use 'copy_perm' option in Net::SFTP::Foreign module -
i want copy file remote host local host preservation of file permission, hence tried use 'copy_perm' option per documentation of net::sftp::foreign mentioned below -
my $sftp = net::sftp::foreign->new( host => $host, key_path => $ssh_key_path, copy_perm => 1, more => [ -o => 'compression yes' ] );
but getting below error -
invalid option 'copy_perm' or bad combination of options @ test.pl @ line 101.
the line 101 net::sftp::foreign object creation mentioned above. did miss or has faced same issue before?
Comments
Post a Comment