std::archive::tar¶
Status: experimental
Unix tar reader and writer (USTAR / PAX-aware decode).
API details and source¶
The implementation source contains the complete declarations and implementation notes. The table below lists canonical Gossamer call signatures; every item name links directly to its implementation file.
| Item | Canonical signature or declaration | Description |
|---|---|---|
TarEntry |
type TarEntry |
name + data + size + mode. |
read |
fn read(path: String) -> Result<Vec<(String, Vec<u8>)>, errors::Error> |
Reads all entries from a tar archive. |
write |
fn write(entries: Vec<(String, Vec<u8>)>) -> Result<Vec<u8>, errors::Error> |
Builds a tar archive from (name, data) pairs. |