commons-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/COMPRESS-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123628#comment-13123628
] 

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 test.zip which creates
a test directory, I've created and compiled the following trivial class

{code}
import org.clerezza.tools.backupfelixcache.CompressionUtil;
import java.io.File;

public class Driver {
    public static void main(String[] args) throws Throwable {
        CompressionUtil.zip(new File("test"), new File("output.zip"));
    }
}
{code}

I'll attach the resulting output.zip created on Ubuntu 10.4 with 

{noformat}
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)
{noformat}

As you can see it contains everything your original test.zip contained as well.
                
> Empty directories missing in zip archive
> ----------------------------------------
>
>                 Key: COMPRESS-158
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-158
>             Project: Commons Compress
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Java 1.6, Ubuntu Linux (ext4 fs)
>            Reporter: Daniel Spicar
>            Priority: Minor
>         Attachments: CompressionUtil.java, output.zip, test.zip
>
>
> 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 https://issues.apache.org/jira/browse/COMPRESS-105 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message