NAME
Finance::DST::FAN::Mail::Download::Plugin::Unzip - Unzip files after downloading
DESCRIPTION
This role is a plugin for Finance::DST::FAN::Mail::Download. It extends the download operation and automatically unzips the file after the download is complete. All methods and attributes will be automatically consumed by that class at load time.
ATTRIBUTES
unlink_after_unzip
Read-write required boolean, defaults to true. When set to true the zip file will be deleted after successful extraction.
METHODS
download
around '_download'
. Wraps the download method and calls _unzip
after downloading. the value returned by _download
will be the name of the unziped file.
_unzip $ziped_file
Will decompress the ziped file and return the unziped filename. Will also delete the ziped file if unlink_after_download
is true
SEE ALSO
Finance::DST::FAN::Mail::Download, Finance::DST::FAN::Mail::Download::Plugin::Rename Finance::DST::FAN::Mail::Download::Plugin::Split
AUTHOR
Guillermo Roditi (groditi) <groditi@cpan.org>
BUGS, FEATURE REQUESTS AND CONTRIBUTIONS
Google Code Project Page - http://code.google.com/p/finance-dst-fan-mail/
LICENSE
You may distribute this code under the same terms as Perl itself.