nlfiedler / exaf-rs

EXtensible Archiver Format
MIT License
0 stars 0 forks source link

Support optionally adding file metadata and optionally applying that on extraction. #2

Open nlfiedler opened 2 months ago

nlfiedler commented 2 months ago

The code for collecting and storing the file/directory metadata is there but the writer is not calling it. The missing part is to use that information on extraction and assign permissions, ownership, etc to the files and directories.

In the implementation, if itempos is non-zero, file metadata should not be serialized to the block. That is, when serializing the first part of a file to the manifest, then its full metadata should be stored in the manifest. When other parts of the file are written to subsequent content blocks, the metadata should not be written to the manifest. The clue will be that the item position will be non-zero in those cases.