App::Followme::UploadFtp - Upload files using ftp
my $ftp = App::Followme::UploadNone->new(\%configuration); $ftp->open($user, $password); $ftp->add_directory($dir); $ftp->add_file($filename); $ftp->delete_file($filename); $ftp->delete_dir($dir); $ftp->close();
App::Followme::UploadSite splits off methods that do the actual uploading into a separate package, so it can support more than one method. This package uploads files using good old ftp.
The following are the public methods of the interface
Create a new directory.
Upload a file.
Delete a directory, including its contents
Delete a file on the remote site. .
Close the ftp connection to the remote site.
The follow parameters are used from the configuration. In addition, the package will prompt for and save the user name and password.
Set to one to trace the ftp commands issued. Useful to diagnose problems with ftp uploads. The default value is zero.
The top directory of the remote site
The url of the remote ftp site.
The name of the package that manipulates filenames for the remote system. The default value is 'File::Spec::Unix'. Other possible values are 'File::Spec::Win32' and 'File::Spec::VMS'. Consult the Perl documentation for
Copyright (C) Bernie Simon.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Bernie Simon <email@example.com>