Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: NET::SFTP - Permission Denied (preserve timestamps?)

by salva (Abbot)
on Nov 17, 2010 at 08:54 UTC ( #871962=note: print w/ replies, xml ) Need Help??


in reply to NET::SFTP - Permission Denied (preserve timestamps?)

Try using Net::SFTP::Foreign instead. Its put method can be toll to not copy file attributes using the copy_perm and copy_time arguments:

$sftp->put($src, $target, copy_perm => 0, copy_time => 0);

update: are you using Windows? then, read also this thread: SFTP on Windows.


Comment on Re: NET::SFTP - Permission Denied (preserve timestamps?)
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://871962]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2015-01-25 05:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (180 votes), past polls