Function tauri_sys::path::resolve

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

Resolves a sequence of paths or path segments into an absolute path.

§Example

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

let app_data_dir_path = app_data_dir().await?;

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