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");