ratarmount icon indicating copy to clipboard operation
ratarmount copied to clipboard

Support write/commit overlay for .zip format

Open T3sT3ro opened this issue 10 months ago • 1 comments

It would be nice if I could mount the zip, make changes and write it back to the original. I tried with commit and write overlays, but it returned error saying it only supports .tar archives for now.

T3sT3ro avatar Apr 30 '25 20:04 T3sT3ro

Should be doable, but the performance of such a solution would be another matter. The tar implementation takes care to do the modification in place thanks to GNU tar, i.e., no additional disk space or memory is required. The processing time scales with the file size though.

Theoretically, this the same performance should be possible for zip because the format is very similar, but it seems that this is not possible with the standard Python module. Instead, a first solution would have to copy the whole archive to another temporary file while filtering entries. This is not ideal, but I would be fine with having some solution at first before optimizing it.

mxmlnkn avatar May 03 '25 19:05 mxmlnkn