Skip to main content

Mountain/IPC/WindServiceHandlers/Git/Shared/
ResolveCwd.rs

1//! Resolves a raw cwd string to a PathBuf. Falls back to current dir.
2
3use std::path::PathBuf;
4
5pub fn Fn(Raw:&str) -> PathBuf {
6	if Raw.is_empty() {
7		std::env::current_dir().unwrap_or_default()
8	} else {
9		PathBuf::from(Raw)
10	}
11}