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


Net-SFTP-Foreign documentation  | view source Contained in the Net-SFTP-Foreign distribution.

Index


NAME

Top

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

SYNOPSIS

Top

    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);

DESCRIPTION

Top

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.

COPYRIGHT

Top


Net-SFTP-Foreign documentation  | view source Contained in the Net-SFTP-Foreign distribution.