diff --git a/yazi-shared/src/fs/path.rs b/yazi-shared/src/fs/path.rs index b542c658..a9681b5b 100644 --- a/yazi-shared/src/fs/path.rs +++ b/yazi-shared/src/fs/path.rs @@ -170,6 +170,7 @@ pub fn path_relative_to<'a>(path: &'a Path, root: &Path) -> Cow<'a, Path> { Cow::from(buf) } +#[cfg(windows)] pub fn backslash_to_slash(p: &Path) -> Cow { let bytes = p.as_os_str().as_encoded_bytes();