Function tauri_sys::path::is_absolute

source ·
pub async fn is_absolute(path: &str) -> Result<bool, Error>
Expand description

Returns whether the path is absolute or not.

§Example

use tauri_sys::path::is_absolute;

assert!(is_absolute("/home/tauri").await?);