unconcatenate_files

Function unconcatenate_files 

Source
pub fn unconcatenate_files(
    input: &mut File,
    infos: &[FileInfo],
    output_directory: &Path,
    overwrite: bool,
    progress_cb: impl FnMut(Progress<'_>),
) -> Result<()>
Expand description

Splits the concatenated gzip input into separate files

After successfully returning, input will be positioned at the end of the last file.

ยงErrors

If this function cannot ensure the existence of the output directory, an error will be returned.

Any form of I/O or other error encountered while extracting one file, causes progress_cb to be called with Progress::FileFailed.

Interruption by a signal instead causes progress_cb to be called with Progress::ProgressStep.