nlfiedler / exaf-rs

EXtensible Archiver Format
MIT License
0 stars 0 forks source link

Store and restore file extended attributes. #9

Open nlfiedler opened 1 month ago

nlfiedler commented 1 month ago

Typically only see this with macOS but the feature exists elsewhere such that files and directories may have arbitrary data associated with them, referred to as extended attributes. The xattr crate offers support for this in Rust, on those systems that have such a feature.

Would need to map the attribute names to their byte values. Would also need to ensure the attribute data will fit in a single header row (64 KB). Either that or come up with a new storage format that will allow arbitrarily sized attributes.

nlfiedler commented 1 month ago

Storing of metadata is now supported via the Writer::with_options() constructor. However, the reader does not apply that information to the files upon extraction. The properties are exposed via the Entries iterator.