nlfiedler / exaf-rs

EXtensible Archiver Format
MIT License
0 stars 0 forks source link

Support appending new content to an existing archive. #3

Open nlfiedler opened 2 months ago

nlfiedler commented 2 months ago

While I have no need for this, every other archiver provides this basic functionality. The writer would need to build up a mapping of full paths to the parent id while also determining the highest directory identifier so far. Then, if adding a file in a new directory, add a directory entry whose id is the highest id + 1, otherwise if adding a file to an existing directory, use that directory id as the parent.