[
https://issues.apache.org/jira/browse/COMPRESS-329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15087243#comment-15087243
]
Torsten Curdt commented on COMPRESS-329:
----------------------------------------
...and this is not related to compress at all.
This is a general windows/linux/osx filesystem reality.
> 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)