Skip to main content

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

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