From 7169b4d6feddf008d344efe83e6976cd9a8fc775 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sat, 26 Oct 2024 08:47:39 +0800 Subject: [PATCH] .. --- yazi-shared/src/fs/path.rs | 1 + 1 file changed, 1 insertion(+) 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();