Net::SFTP::Foreign::Tempdir::Extract::File - Path::Class::File with an extract method
use Net::SFTP::Foreign::Tempdir::Extract; my $sftp = Net::SFTP::Foreign::Tempdir::Extract->new(user=>$user, match=>qr/\.zip\Z/); my $file = $sftp->next; # isa Net::SFTP::Foreign::Tempdir::Extract::File
Net::SFTP::Foreign::Tempdir::Extract::File is a convince wrapper around Path::Class, Archive::Extract and File::Tempdir
my $archive = Net::SFTP::Foreign::Tempdir::Extract::File->new( $path, $filename ); my @files = $archive->extract; #array of Net::SFTP::Foreign::Tempdir::Extract::File files
Extracts tar.gz and Zip files to temporary directory (any format supported by Archive::Extract)
my @files = $archive->extract; #list of Net::SFTP::Foreign::Tempdir::Extract::File files my $files = $archive->extract; #array reference of Net::SFTP::Foreign::Tempdir::Extract::File files
Note: These files are temporary and will be cleaned up when the file object variable goes out of scope.
Support other archive formats besides zip
Send email to author and log on RT.
DavisNetworks.com supports all Perl applications including this package.
Michael R. Davis CPAN ID: MRDVT Satellite Tracking of People, LLC mdavis@stopllc.com http://www.stopllc.com/
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Path::Class, File::Tempdir, Archive::Extract
To install Net::SFTP::Foreign::Tempdir::Extract, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::SFTP::Foreign::Tempdir::Extract
CPAN shell
perl -MCPAN -e shell install Net::SFTP::Foreign::Tempdir::Extract
For more information on module installation, please visit the detailed CPAN module installation guide.