Skip to main content

write_entry

Function write_entry 

Source
pub fn write_entry(
    target: &Path,
    entry: &StuffItEntry,
    data: &[u8],
    rsrc: &[u8],
    format: ForkFormat,
    raw_rsrc_path: Option<&Path>,
) -> Result<()>
Expand description

Write one extracted file’s forks to the host in the chosen container format.

raw_rsrc_path overrides where a ForkFormat::Raw resource sidecar is written; the orchestrator passes a collision-free path here (see [raw_rsrc_sidecar_path]). It is ignored for every other format, and a None falls back to the natural name.rsrc next to target.