Skip to content
Tcl Source Code View Ticket
Login

View Ticket

zipfs allows writing to files in the mounted zipfile but does not save to disk

Closed / Fixedd22637ba8ca9695ee22cbe431e63a20ac0b891acCreated 3 years agoUpdated 3 years ago
Descriptionmarkdown2023-09-06 16:28:29

Existing files in a mounted zipfs system can be written to and correctly read back within the same process while the zip file is still mounted. However, the modified file is not actually written to disk so when the zipfs file is unmounted (or program exits) the changes are lost. Not sure if this is by design or not but it is very misleading and should be fixed.

On the other hand creation of new files is not permitted as currently implemented.

My suggestion is to make the zipfs file mounts read-only and not allow modification.

The alternative, saving the new zip content to disk is not a feasible goal for the current release, imo.

TIP 430 does not say anything on this topic of whether the file system is writable but being able to write to existing files but not new ones is neither here nor there.

apnadkarniplain2023-10-04 10:08:38
Fixed manpage in [303053af53].

Alternatives will require a TIP and new implementation.
Log in (anonymous is fine) to add a comment.