Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Download progress for SFTP mput

by kcott (Abbot)
on May 01, 2013 at 16:05 UTC ( #1031597=note: print w/ replies, xml ) Need Help??


in reply to Download progress for SFTP mput

Looking at the Net::SFTP::Foreign Source, it would appear that callback is not a valid option for mput():

sub mput { ... my ($sftp, $local, $remotedir, %opts) = @_; ... my $ignore_links = delete $opts{ignore_links}; my %glob_opts = (map { $_ => delete $opts{$_} } qw(on_error follow_links ignore_case wanted no_wanted strict_leading_dot)); ... my %put_opts = (map { $_ => delete $opts{$_} } qw(umask perm copy_perm copy_time block_size queue_size overwrite conversion resume numbered late_set_p +erm atomic best_effort sparse)); %opts and _croak_bad_options(keys %opts); ...

However, put() does accept callback (as well as copy_perm and copy_time):

sub put { ... my $cb = delete $opts{callback}; ... my $copy_perm = delete $opts{copy_perm}; ... my $copy_time = delete $opts{copy_time}; ...

-- Ken


Comment on Re: Download progress for SFTP mput
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2015-07-30 02:26 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 (269 votes), past polls