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?

that's because copy_perm isn't option new method. use in get , put.


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -