Bundled zip FileSystemProvider fails to recognize "readonly"?

Alan Bateman Alan.Bateman at oracle.com
Tue Apr 21 20:43:10 UTC 2015


On 21/04/2015 21:17, Martin Buchholz wrote:
> It seems "obvious" that file system implementations should have 
> options for read-only access, mirroring the readonly options from 
> mount(8).
>
> For existing zip files, one almost always wants to open them 
> read-only.  New zip files are almost always rewritten from scratch.
>
The approximately equivalent to mount options is the env parameters 
specified to the newFileSystem. There aren't any standard options defined.

The zip provider of course can of course create read-only or read-write 
file systems. It decides based on whether whether the zip file is 
writable or not. It would have been better to have it exposed, and would 
be trivial to do of course.

-Alan.


More information about the nio-dev mailing list