1pub fn get_current_dir() -> Option<String> { 2 std::env::current_dir() 3 .ok() 4 .map(|p| p.to_string_lossy().to_string()) 5}