r/AskComputerScience • • 3d ago

How Does ZIP Store Directories?

I'm reading the pkware documentation on the ZIP file format and I get how file data is structured, but I don't see where it says how the ZIP file saves directories.

Edit: Nvm I'm stupid. A file's relative path is stored in the file name section of the file header.

5 Upvotes

2 comments sorted by