Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://871962]
[stevieb]: je ne pas parles en Francais, but I prefer a vape, not a pipe ;)
[RonW]: shmem++ # too dumb to debug it

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2017-03-28 22:38 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (342 votes). Check out past polls.