GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Net::SFTP::Foreign::Compat(3) User Contributed Perl Documentation Net::SFTP::Foreign::Compat(3)

Net::SFTP::Foreign::Compat - Adapter for Net::SFTP compatibility

    use Net::SFTP::Foreign::Compat;
    my $sftp = Net::SFTP::Foreign::Compat->new($host);
    $sftp->get("foo", "bar");
    $sftp->put("bar", "baz");

    use Net::SFTP::Foreign::Compat ':supplant';
    my $sftp = Net::SFTP->new($host);

This package is a wrapper around Net::SFTP::Foreign that provides an API (mostly) compatible with that of Net::SFTP.

Methods on this package are identical to those in Net::SFTP except that Net::SFTP::Foreign::Attributes::Compat objects have to be used instead of Net::SFTP::Attributes.

If the ":supplant" tag is used, this module installs also wrappers on the "Net::SFTP" and Net::SFTP::Attributes packages so no other parts of the program have to modified in order to move from Net::SFTP to Net::SFTP::Foreign.

The hash %Net::SFTP::Foreign::DEFAULTS can be used to set default values for Net::SFTP::Foreign methods called under the hood and otherwise not accessible through the Net::SFTP API.

The entries currently supported are:

new => \@opts
extra options passed to Net::SFTP::Foreign constructor.
get => \@opts
extra options passed to Net::SFTP::Foreign::get method.
put => \@opts
extra options passed to Net::SFTP::Foreign::put method.
ls => \@opts
extra options passed to Net::SFTP::Foreign::ls method.

Copyright (c) 2006-2008, 2011 Salvador Fandiño

All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2019-10-04 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.