Skip to main content

append_archive_member_from_name_ext

Function append_archive_member_from_name_ext 

Source
pub fn append_archive_member_from_name_ext(
    archive_path: &str,
    name: &str,
    ext: &str,
    builder: &mut Builder<File>,
) -> Result<(), SigmfError>
Expand description

Copies the archive member {name}.{ext} from the tar file at archive_path into builder, preserving its original header.

ยงErrors

Returns SigmfError::NotFound if no member matches, or SigmfError::Io if reading the source archive or writing to builder fails.