Function tauri_wasm::api::path::dirname
source · pub async fn dirname(path: &str) -> Result<PathBuf>
Expand description
Returns the directory name of a path
. Trailing directory separators are ignored.
§Example
use tauri_wasm::api::path::{dirname, app_data_dir};
let app_data_dir_path = app_data_dir().await?;
let dir = dirname(app_data_dir_path).await?;