Function tauri_wasm::api::path::join
source · pub async fn join(paths: impl IntoIterator<Item = &str>) -> Result<PathBuf>
Expand description
Joins all given path
segments together using the platform-specific separator as a delimiter, then normalizes the resulting path.
§Example
use tauri_wasm::api::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?;