Add an empty directory to Zip (using java.util.zip)
I came across a jar-file that contains a ZipEntry for which isDirectory() yields true.
How can I write such an entry into a jar/zip-file. Creating a ZipEntry that ends with File.separator does not write anything into the file and creating an entry just by putNextEntry(..);closeEntry() produces only a simple file in the zip.
I like to create a zip that creates some empty folders upon extraction.