Archive::SevenZip::API::ArchiveZip - Archive::Zip compatibility API
my $ar = Archive::SevenZip->archiveZipApi( find => 1, archivename => $archivename, verbose => $verbose, );
This module implements just enough of the Archive::Zip API to pass some of the Archive::Zip test files. Ideally you can use this API to enable a script that uses Archive::Zip to also read other archive files supported by 7z.
$ar->numberOfMembers
my $count = $az->numberOfMembers();
$az->memberNamed
my $entry = $az->memberNamed('hello_world.txt'); print $entry->fileName, "\n";
$ar->replaceMember
$ar->replaceMember('backup.txt', 'new-backup.txt');
Replaces the member in the archive. This is just delete then add.
I clearly don't understand the utility of this method. It clearly does not update the content of one file with the content of another file, as the name of the new file can be different.
This module tries to mimic the API of Archive::Zip.
The Archive::Zip test suite assumes that items added later to an archive will appear later in the directory listing. 7-zip makes no such guarantee.
The public repository of this module is https://github.com/Corion/archive-sevenzip.
The public support forum of this module is https://perlmonks.org/.
Please report bugs in this module via the RT CPAN bug queue at https://rt.cpan.org/Public/Dist/Display.html?Name=Archive-SevenZip or via mail to archive-sevenzip-Bugs@rt.cpan.org.
Max Maischein corion@cpan.org
corion@cpan.org
Copyright 2015-2022 by Max Maischein corion@cpan.org.
This module is released under the same terms as Perl itself.
To install Archive::SevenZip, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Archive::SevenZip
CPAN shell
perl -MCPAN -e shell install Archive::SevenZip
For more information on module installation, please visit the detailed CPAN module installation guide.