ZipPop: a space conserving unzipping script

11 points by th0ma5


Cajunvoodoo

I've wanted this multiple times. Not too hard to write but annoying enough never to justify the use of my time. Very good!

zk

Good idea! This is a tool that is definitely necessary. I've run into this issue a fair few times and it just always struck me as "there has to be a better way to do this".

dzwdz

This is way slower as we're (currently) constantly rewriting the index so that you constantly have a valid zip file most of the time.

"constantly most of the time", lol. But also... why? I feel like just copying the header away elsewhere would be a better solution. You could have a separate utility that stitches it back on.

If you're fine with a non-portable solution (you tagged this with linux so I guess you are), I think sparse files would be decent here. See fallocate(2).