Skip to main content

tar_dir

Function tar_dir 

Source
pub fn tar_dir<W: Write>(
    w: W,
    dir: &Path,
    skip: Option<SkipFn<'_>>,
) -> Result<W>
Expand description

Writes dir as an uncompressed tar stream, with the rules chainctl documents for its workspace upload: symlinks travel as links; sockets, devices and FIFOs are skipped; entries are owned by root. A symlinked dir is resolved first. A file that changes size while it is being written is truncated or zero-padded to the size in its header, rather than aborting the tar.