fn append_relative_files<W>(
builder: Builder<W>,
mtree: &Mtree,
input_paths: &InputPaths<'_, '_>,
) -> Result<Builder<W>, Error>where
W: Write,
Expand description
Appends relative files from an input directory to a Builder
.
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
usingmtree
fails, - retrieving files relative to
input_dir
fails, - or adding one of the relative paths to the
builder
fails.