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.
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.