Archive::Any::Create
Abstract API to create archives (tar.gz and zip)
- Provided by: libarchive-any-create-perl (Version: 0.3-3)
- Report a bug
Abstract API to create archives (tar.gz and zip)
use Archive::Any::Create;
my $archive = Archive::Any::Create->new;
$archive->container('foo'); # top-level directory
$archive->add_file('bar.txt', $data); # foo/bar.txt
$archive->add_file('bar/baz.txt', $data); # foo/bar/baz.txt
$archive->write_file('foo.tar.gz');
$archive->write_file('foo.zip');
$archive->write_filehandle(\*STDOUT, 'tar.gz');
Archive::Any::Create is a wrapper module to create tar/tar.gz/zip files with a single easy-to-use API.
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Archive::Any, Archive::Tar, Archive::Zip