tauri-api 0.5.2

Make tiny, secure apps for all desktop platforms with Tauri
Documentation
1
2
3
4
pub fn get_dir_name_from_path(path: String) -> String {
  let path_collect: Vec<&str> = path.split('/').collect();
  path_collect[path_collect.len() - 1].to_string()
}