pub fn expand_if_path(str: String, reference: &Path) -> String
Expand description

Only expands the path if the string contains a slash (/) in it. Otherwise consider it as a string.