Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: NET::SFTP::Foreign Error

by salva (Monsignor)
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2014-08-20 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (124 votes), past polls