Hacker News new | past | comments | ask | show | jobs | submit login

To read a zip file, you need to read it backwards: https://github.com/corkami/pics/raw/master/binary/zip101/zip....

There's also another standard called ZIP64 to allow for larger files (maximum 4GB in the original spec).

I was going to say that RAR is proprietary, but at least there's (non-FOSS) source code and good specs: https://www.rarlab.com/technote.htm




The central directory is a great feature of zip. Makes it easy to append to and to list the files or decompress individual files without decompressing the entire archive.

The actual horrible thing about zip is that there is no standard whatsoever for the encoding of filenames. So mangled filenames are common and most utilities don't even let you manually select the encoding if you know what it is.


Yeah, I occasionally would encounter errors decoding zip files along the lines of "the file name was too long"




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: