Skip to main content

begin

Function begin 

Source
pub fn begin(
    job: &Job,
    paths: &Paths,
    output: PathBuf,
    keep_archive: bool,
    replace: Option<&Choices>,
) -> Result<Journal>
Expand description

Commits to a fresh extraction: saves the archive’s tail and writes the journal. From here on the archive may be truncated, unless keep_archive is set, in which case nothing ever changes it. Files in the way (see existing) are refused unless replace is given; then the run moves them aside before it extracts anything, and once it is complete deletes them or puts back the ones the choices keep.