Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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?
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 scrutinizing the Monastery: (3)
As of 2015-07-06 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (69 votes), past polls