Rene Schickbauer > Maplat-0.995 > Maplat::Helpers::FTPSync

Download:
Maplat-0.995.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.995   Source  

NAME ^

Maplat::Helpers::FTPSync - Sync files with a remote (ftp) server

SYNOPSIS ^

  use Maplat::Helpers::FTPSync;
  
  my $ftp = Maplat::Helpers::FTPSync($url, $localdir, $mode, $filetype);

DESCRIPTION ^

Copies or moves files from an FTP URL to a local dir (or the other way around).

new

Create a new instance. Takes 4 arguments: The FTP Url (including username+password), the local directory, the mode ("copy" or "move") and the filetype.

The filetype is the case sensitive filenyme ending withour the dot, for example "bmp" or "xml".

toLocal

Copy or move the files from the FTP server to the local directory.

toRemote

Copy or move the files from the local directory to the FTP server.

quit

Close connection

AUTHOR ^

Rene Schickbauer, <rene.schickbauer@gmail.com>

COPYRIGHT AND LICENSE ^

Copyright (C) 2008-2011 by Rene Schickbauer

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: