Help language development. Donate to The Perl Foundation
Raku (Perl6) module to write Zip archives.
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();
Simple write-only interface to allow creation of Zip files.
Please note - this is module is a prototype. The interface will change.
Suggestions/patches are welcomed at Archive-SimpleZip
Please see the LICENCE file in the distribution
(C) Paul Marquess 2016-2021