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