NAME
App::Followme::UploadNone - Go through the motions of uploading files
SYNOPSIS
my $uplader = App::Followme::UploadNone->new(\%configuration);
$uploader->open($user, $password);
$uploader->add_directory($dir);
$uploader->add_file($filename);
$uploader->delete_directory($dir);
$uploader->delete_file($filename);
$uploader->close();
DESCRIPTION
App::Followme::UploadSite splits off methods that do the actual uploading into a separate package, so it can support more than one method. This is the null method, that does no upload, which is invoked when the user only wants to update the checksums without doing any uploads. In addition, this package serves as a template for other packages, because it has all the necessary methods with the correct interfaces.
METHODS
The following are the public methods of the interface. The return value indicates if the operation was successful.
- $flag = $self->add_directory($dir);
-
Create a new directory
- $flag = $self->add_file($filename);
-
Upload a new file. If it already exists, delete it.
- $self->close();
-
Close the connection to the remote site.
- $flag = $self->delete_directory($dir);
-
Delete a directory, including any files it might hold.
- $flag = $self->delete_file($filename);
-
Delete a file on the remote site.
- $self->open($user, $password);
-
Open the connection to the remote site
- $self = $self->setup();
-
Set up computed fields in the new object
LICENSE
Copyright (C) Bernie Simon.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Bernie Simon <bernie.simon@gmail.com>