Function compress_file_as

Source
pub fn compress_file_as(
    source_path: &Path,
    target_path: PathBuf,
    add_tmp_suffix: bool,
) -> Result<PathBuf>
Expand description

target_path must include the .zstd extension. XX why does this not always do .tmp and then rename, for safety? Rather, have an omit_rename argument and then leave .tmp suffix in place?