Function filter_unpack

Source
pub fn filter_unpack<P>(
    layers: &[Vec<u8>],
    target_dir: &Path,
    predicate: P,
) -> Result<(), RenderError>
where P: Fn(&Path) -> bool,
Expand description

Unpack an ordered list of layers to a target directory, filtering file entries by path.

Layers must be provided as gzip-compressed tar archives, with lower layers coming first. Target directory must be an existing absolute path.