Function run_bsdtar
Source fn run_bsdtar(
path: impl AsRef<Path>,
options: BsdtarOptions,
stdin: &str,
) -> Result<Vec<u8>, Error>
Expand description
Runs bsdtar in path
with dedicated options
and return its stdout.
Creates [ALPM-MTREE] data based on the string slice stdin
which contains all sorted paths
below path
and is passed to bsdtar on stdin.
§Errors
Returns an error if
- the bsdtar command can not be found,
- the bsdtar command can not be spawned in the background,
- the bsdtar command’s stdin can not be attached to,
- the bsdtar command’s stdin can not be written to,
- calling the bsdtar command is not possible,
- or bsdtar returned a non-zero status code.