1 2 3 4 5
use std::path::Path; pub fn as_path_str(string: &str) -> String { Path::new(string).to_string_lossy().to_string() }