append_relative_files

Function append_relative_files 

Source
fn append_relative_files<'c>(
    builder: TarballBuilder<'c>,
    mtree: &Mtree,
    input_paths: &InputPaths<'_, '_>,
) -> Result<TarballBuilder<'c>, Error>
Expand description

Appends relative files from an input directory to a TarballBuilder.

Before appending any files, all provided input_paths are validated against mtree (ALPM-MTREE data).

ยงErrors

Returns an error if

  • validating any path in input_paths using mtree fails,
  • retrieving files relative to input_dir fails,
  • or adding one of the relative paths to the builder fails.