Raku Land

Archive::SimpleZip

cpan:PMQS

Archive::SimpleZip

Raku (Perl6) module to write Zip archives.

Raku Test Build Status Build Status

Synopsis


use Archive::SimpleZip;

# Create a zip file in filesystem
my $obj = SimpleZip.new("mine.zip");

# Add a file to the zip archive
$obj.add("somefile.txt".IO);

# Add a Blob/String
$obj.add("payload data here", :name<data1>);
$obj.add(Blob.new([2,4,6]), :name<data2>);

# Drop a filehandle into the zip archive
my $handle = "some file".IO.open;
$obj.add($handle, :name<data3>);

use IO::Glob;
$zip.add(glob("*.c"));

$obj.close();

Description

Simple write-only interface to allow creation of Zip files.

Please note - this is module is a prototype. The interface will change.

Support

Suggestions/patches are welcomed at Archive-SimpleZip

Licence

Please see the LICENCE file in the distribution

(C) Paul Marquess 2016-2021