pub async fn extname(path: &str) -> Result<PathBuf, Error>
Expand description
Returns the extension of the path
.
§Example
use tauri_sys::path::{extname, resolve_resource};
let resource_path = await resolve_resource("app.conf").await?;
let ext = extname(resource_path).await?;
assert_eq!(ext, "conf");