Function tauri_wasm::api::path::extname

source ·
pub async fn extname(path: &str) -> Result<PathBuf>
Expand description

Returns the extension of the path.

§Example

use tauri_wasm::api::path::{extname, resolve_resource};

let resource_path = await resolve_resource("app.conf").await?;
let ext = extname(resource_path).await?;
assert_eq!(ext, "conf");