tauri_sys::path

Function join

source
pub async fn join(
    paths: impl IntoIterator<Item = &str>,
) -> Result<PathBuf, Error>
Expand description

Joins all given path segments together using the platform-specific separator as a delimiter, then normalizes the resulting path.

ยงExample

use tauri_sys::path::{join, app_data_dir};

let app_data_dir_path = app_data_dir().await?;

let path = join([app_data_dir_path, "..", "users", "tauri", "avatar.png"]).await?;