WithZipFile should open a read only handle(or have the option to) #573
Labels
area:files
Issue with FileModule and/or file providers
bug
good first issue
Good starting point for new collaborators.
pinned
Pinned issues are not closed automatically when stale.
v3.x
v4.x
Describe the bug
The built in WithZipFile extension method provides no mechanism for the user to open the zip file in read only mode, which is problematic if you have another instance of the map, or external tooling, also wanting to read the archive in read only mode.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expect to be able to open a zip file in read only mode. If the ZipFileProvider doesn't support writing at all, then the WithZipFile should just hard code to read only, as there is no reason for a write lock to be held.
Additional context
This was discussed a bit in slack for more information on October 24th, 2022
The text was updated successfully, but these errors were encountered: