commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Bodewig (Commented) (JIRA)" <>
Subject [jira] [Commented] (COMPRESS-158) Empty directories missing in zip archive
Date Sun, 09 Oct 2011 05:44:29 GMT


Stefan Bodewig commented on COMPRESS-158:

Hi Daniel,

I'm completely unable to reproduce the problem.  Just to double check, I've downloaded and
compiled your CompressionUtil class, I have downloaded and extracted the which creates
a test directory, I've created and compiled the following trivial class


public class Driver {
    public static void main(String[] args) throws Throwable { File("test"), new File(""));

I'll attach the resulting created on Ubuntu 10.4 with 

stefan@birdy:~/Desktop/compress-158$ java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.9) (6b20-1.9.9-0ubuntu1~10.04.2)
OpenJDK Client VM (build 19.0-b09, mixed mode, sharing)

As you can see it contains everything your original contained as well.
> Empty directories missing in zip archive
> ----------------------------------------
>                 Key: COMPRESS-158
>                 URL:
>             Project: Commons Compress
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Java 1.6, Ubuntu Linux (ext4 fs)
>            Reporter: Daniel Spicar
>            Priority: Minor
>         Attachments:,,
> When zipping a directory that contains several files and subdirectories of which some
can be empty, I am missing empty directories. When using a tar archive format empty directories
are present.
> I have found which describes a similar
issue, however I am unable to reproduce the solution suggested there. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message