1Net::SFTP::Foreign::ComUpsaetr(3C)ontributed Perl DocumeNnetta:t:iSoFnTP::Foreign::Compat(3)
2
3
4

NAME

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

SYNOPSIS

9           use Net::SFTP::Foreign::Compat;
10           my $sftp = Net::SFTP::Foreign::Compat->new($host);
11           $sftp->get("foo", "bar");
12           $sftp->put("bar", "baz");
13
14           use Net::SFTP::Foreign::Compat ':supplant';
15           my $sftp = Net::SFTP->new($host);
16

DESCRIPTION

18       This package is a wrapper around Net::SFTP::Foreign that provides an
19       API (mostly) compatible with that of Net::SFTP.
20
21       Methods on this package are identical to those in Net::SFTP except that
22       Net::SFTP::Foreign::Attributes::Compat objects have to be used instead
23       of Net::SFTP::Attributes.
24
25       If the ":supplant" tag is used, this module installs also wrappers on
26       the "Net::SFTP" and Net::SFTP::Attributes packages so no other parts of
27       the program have to modified in order to move from Net::SFTP to
28       Net::SFTP::Foreign.
29
30   Setting defaults
31       The hash %Net::SFTP::Foreign::DEFAULTS can be used to set default
32       values for Net::SFTP::Foreign methods called under the hood and
33       otherwise not accessible through the Net::SFTP API.
34
35       The entries currently supported are:
36
37       new => \@opts
38           extra options passed to Net::SFTP::Foreign constructor.
39
40       get => \@opts
41           extra options passed to Net::SFTP::Foreign::get method.
42
43       put => \@opts
44           extra options passed to Net::SFTP::Foreign::put method.
45
46       ls  => \@opts
47           extra options passed to Net::SFTP::Foreign::ls method.
48
50       Copyright (c) 2006-2008, 2011 Salvador FandiƱo
51
52       All rights reserved.  This program is free software; you can
53       redistribute it and/or modify it under the same terms as Perl itself.
54
55
56
57perl v5.34.0                      2022-01-21     Net::SFTP::Foreign::Compat(3)
Impressum