pub fn get_project_name_from_path<'a>(
path: &'a Path,
default: &'a str,
) -> &'a str
Expand description
Gets the last component (name of a project) of a path or returns a default value if the path has no valid last component.
ยงArguments
path
- Location path of the project.default
- The default string to return if the path has no valid last component.