Using NIO2 for writing zip file entries without corresponding folder entries

Rafael Winterhalter rafael.wth at
Wed Oct 10 11:31:49 UTC 2018


I was wondering why the ZipFileSystem checked for the existence of a file's
parents before writing a file. Writing folder entries is not a requirement
in the specification for zip files and I find it strange that the
implementation enforces it. I found that even to be problematic when
altering a zip file where NIO2 requires you to add folder entries that did
not exist before.

Thanks for the information.

Best regards, Rafael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nio-dev mailing list