App::Followme::UploadLocal - Upload files through file copy
my $uploader = App::Followme::UploadLocal->new(\%configuration); $uploader->open(); $uploader->add_directory($dir); $uploader->add_file($filename); $uploader->delete_directory($dir); $uploader->delete_file($filename); $uploader->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 to the server using a simple file copy.
The following are the public methods of the interface. The return value indicates if the operation was successful.
Create a new directory
Upload a new file. If it already exists, delete it.
Close the connection to the remote site.
Delete a directory, including any files it might hold.
Delete a file on the remote site.
Open the connection to the remote site
Set up computed fields in the new object
The following parameters are used from the configuration.
The top directory of the website the files are being copied to
The permissions to put on the remote file.
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 <bernie.simon@gmail.com>
To install App::Followme, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Followme
CPAN shell
perl -MCPAN -e shell install App::Followme
For more information on module installation, please visit the detailed CPAN module installation guide.