upvote
Do you really need a central directory? The tar and cpio file formats basically append files serially with a small header preceeding each one, and for most use cases this is sufficient.
reply
You don't need one, but it's convenient for listing the files in the archive without having to scan through it.
reply
I always assumed you could work around this by pre-allocating a large enough header space to hold a reasonable sized directory tree. You could even then append a supplementary directory if you run out of space and just stick a pointer in the first one. I'm pretty sure that's just reinventing an actual filesystem, but if it works...
reply
> ... pre-allocating a large enough header space to hold ...

Isn't the point of compression is to eliminate such wastes of space?

reply
It's a trade between size and speed. If you want fast lookup, it's not a waste.
reply
Sure, this would also work. But it seems more complicated -- what would be the benefit?
reply
Losing the back half of the achieve doesn't lose your directory list. (Truth be told, I prefer the approach of sticking a copy on the front and back for redundancy, but I appreciate that that's a very specific tradeoff)
reply
Isn't this basically FAT without the actual allocation table?
reply
I'm curious, is there a reason why you can't incrementally prepend to files? I haven't seen a filesystem that allows prepending to a file without rewriting the entire file. Is it just because it's not traditional, or is there any particular technical reason why it would be too expensive, or etc?
reply
its a legacy from the tape-storage times
reply
[delayed]
reply
In a world long accustomed to "append only" files, use cases would be relatively few.

Vs. the folks creating and testing filesystems would have to do a whole lot of work to add that feature. Followed by the folks doing higher-level software, most of which which need to handle files being prepended to.

In short - interesting idea, not worth the effort.

reply