hpk/tar
Nathan Fisher 85a85a3810 Add Item struct, which contains both a tar::Node and a plist entry.
This struct can be created from just a `Path` parameter, allowing to
read the data contained in a file only once during package creation or
extraction.
2023-03-23 14:43:25 -04:00
..
src Add Item struct, which contains both a tar::Node and a plist entry. 2023-03-23 14:43:25 -04:00
Cargo.toml Add optional owner to node creation from data 2023-03-23 14:09:18 -04:00
README.md Implement tar::Node creation from raw data + file metadata 2023-03-23 12:11:02 -04:00

About

Derived originally from minitar, this crate implements basic functionality for creating and extracting tar archives. It has been adapted to allow creation of a Node (Tar header + 512byte blocks of data) from the raw data plus file metadata. This allows for better efficiency when it is embedded into another application (such as a package manager), as the raw data and metadata about each file can be extracted once and reused for purposes such as generating checksums, getting file sizes and creating packing lists.