CTKlib

 view release on metacpan or  search on metacpan

lib/CTK/Plugin/Net.pm  view on Meta::CPAN

package CTK::Plugin::Net;
use strict;
use utf8;

=encoding utf-8

=head1 NAME

CTK::Plugin::Net - Net plugin

=head1 VERSION

Version 1.02

=head1 SYNOPSIS

    use CTK;
    my $ctk = CTK->new(
            plugins => "net",
        );

    $ctk->fetch(
        -url     => 'ftp://anonymous:anonymous@192.168.200.8/path/srs?Timeout=30&Passive=1',
        -command => "copy", # copy / move
        -uniq    => "off",
        -dirdst  => "/path/to/destination/dir", # Destination directory
        -regexp  => qr/tmp$/,
    );

    $ctk->store(
        -url     => 'ftp://anonymous:anonymous@192.168.200.8/path/dst?Timeout=30&Passive=1',
        -command => "copy", # copy / move
        -uniq    => "off",
        -dirsrc => "/path/to/source/dir", # Source directory
        -regexp   => qr/tmp$/,
    )

=head1 DESCRIPTION

Net plugin. This plugin is proxy to L<CTK::Plugin::FTP> and L<CTK::Plugin::SFTP> plugins

=head1 METHODS

=over 8

=item B<fetch>

Download specified files from remote resource

See related modules description

=item B<store>

Upload files from local directory to remote resource by mask

See related modules description

=back

=head1 HISTORY

See C<Changes> file

=head1 DEPENDENCIES

L<CTK>, L<CTK::Plugin>

=head1 TO DO

* Use SSH (SFTP)

See C<TODO> file

=head1 BUGS

* none noted

=head1 SEE ALSO

L<CTK>, L<CTK::Plugin>, L<CTK::Plugin::SFTP>, L<CTK::Plugin::FTP>

=head1 AUTHOR

Serż Minus (Sergey Lepenkov) L<https://www.serzik.com> E<lt>abalama@cpan.orgE<gt>

=head1 COPYRIGHT

Copyright (C) 1998-2022 D&D Corporation. All Rights Reserved

=head1 LICENSE



( run in 0.749 second using v1.01-cache-2.11-cpan-39bf76dae61 )