Skip to main content

save_file

Function save_file 

Source
pub(crate) fn save_file(
    output: Option<&str>,
    default_file_name: &str,
    data: &[u8],
) -> Result<PathBuf>
Expand description

Write data to the location resolve_output_path picks for (output, default_file_name) and return the path written, so the caller can report it back to the user.