in reply to Re^3: Getting IO::Compress::Zip to include directory entries (on Windows)
in thread Getting IO::Compress::Zip to include directory entries (on Windows)

IO::Compress::Zip cannot write directories (without jumping through a lot of hoops) by design.

I do have another module, called Archive::Zip::SimpleZip (it actually uses IO::Compress::Zip under the hood), that can create directories.

Here is a example of how to use it

use strict ; use warnings; use Archive::Zip::SimpleZip; my @dirs = ("WEB-INF"); my $zip = Archive::Zip::SimpleZip->new("test.zip"); $zip->add($_) for @dirs; $zip->close();

and here is what the commandline unzip this about the zip file

$ unzip -l test.zip Archive: test.zip Length Date Time Name --------- ---------- ----- ---- 0 02-03-2016 12:58 WEB-INF/ --------- ------- 0 1 file