App::Followme::UploadData
use App::Followme::UploadData; my $meta = App::Followme::UploadData->new(exclude => '*.cfg'); my $index_file = $self->to_file($self->{base_directory}); my $files = App::Followme::Template->build('files', $index_file);
This module generates the list of files and folders to be uploaded to the remote site and the checksums for each file.
All data classes are first instantiated by calling new and data items are retrieved by calling the build method with the item name as the first argument and the file or folder as the second argument.
The file metadata class can evaluate the following variables. When passing a name to the build method, the sigil should not be used.
The list of files to be uploaded from a folder.
The list of folders contining files to be uploaded
The MD5 hash of the file contents, used for determining if file has changed and needs to be uploaded.
This class has the following configuration variables:
A filename pattern or comma separated list of filename patterns that match files that should not be uploaded. The default value is '*.cfg' which matches configuration files.
A filename pattern or comma separated list of filename patterns that match folders that should not be uploaded/ The default value is '.*,_*' which matches folders starting with a dot (hiddern folders) and starting with an underscore character.
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.