commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COMPRESS-329) WHY zip file can be deleted while writing data to it on linux
Date Thu, 07 Jan 2016 09:36:39 GMT
Xiao Yu created COMPRESS-329:
--------------------------------

             Summary: WHY zip file can be deleted while writing data to it on linux
                 Key: COMPRESS-329
                 URL: https://issues.apache.org/jira/browse/COMPRESS-329
             Project: Commons Compress
          Issue Type: Bug
          Components: Archivers
    Affects Versions: 1.0
         Environment: OS:redhat 5.5 X64
jre 1.6.0 update 22(x64);
jar:common-comresss-1.0, 
            Reporter: Xiao Yu


1、create zip file using ZipArchiveOutputStream;
zipOutputStream = new ZipArchiveOutputStream(new BufferedOutputStream(new FileOutputStream(zipFile),
BUFFER_SIZE));

2、write data to zip file;

3、while the program is still writing data to zip, try to delete the zip file,it can be
deleted,and there is just no any error;

4、For Windows,you get a message showing the file is locked and can not be deleted



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message