Skip to main content

translate_path

Function translate_path 

Source
pub fn translate_path(path: &str) -> PathTranslation
Expand description

Translate a path auto-detecting direction.

If the path starts with a drive letter (e.g., C:\) or a UNC prefix (\\wsl$), it is treated as a Windows path. Otherwise, it is treated as a Linux path.