Skip to main content

export

Function export 

Source
pub fn export(
    manifest: Manifest,
    contents: &Contents,
    to: &Path,
    opts: &Options,
) -> Result<(Manifest, Summary)>
Expand description

Writes contents as a bundle at to (a .tar archive, else a new directory), with manifest’s description and identity; its chunk fields, disks and files are filled in here. Reads every disk twice: once to cut and hash it, once to compress the distinct chunks (each checked against the first pass, so a disk that changes in between fails the export).