Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: NET::SFTP::Foreign Error

by salva (Abbot)
on May 07, 2014 at 20:20 UTC ( #1085375=note: print w/ replies, xml ) Need Help??

in reply to NET::SFTP::Foreign Error

It seems the remote server does not support the SFTP setstat command.

You can disable file attribute (permissions and timestamps) copying as follows:

$sftp->rput("C:/Users/edawals/Desktop/ftpTestFolder/", "test/tessts/", copy_perm => 0, copy_time => 0, overwrite => 1, on_error => sub { my ($sftp, $e) = @_; print STDERR "error processing $e->{filename}: ". $sft +p->error; } );
(see also how errors can be handled on recursive methods as rput).

Comment on Re: NET::SFTP::Foreign Error
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2016-02-12 13:13 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (397 votes), past polls