utils.rs 168 B

1234
  1. pub fn get_dir_name_from_path(path: String) -> String {
  2. let path_collect: Vec<&str> = path.split('/').collect();
  3. path_collect[path_collect.len() - 1].to_string()
  4. }