kvarn::prelude::utils

Function make_path

source
pub fn make_path(
    base_path: impl AsRef<str>,
    dir: impl AsRef<str>,
    file: impl AsRef<str>,
    extension: Option<&str>,
) -> CompactString
Expand description

Makes a PathBuf using one allocation.

Format is <base_path>/<dir>/<file>(.<extension>)