From 629db6218e165551638147e457396f55ca2937ad Mon Sep 17 00:00:00 2001 From: "shiro.lee" <69624924+shiroleeee@users.noreply.github.com> Date: Tue, 22 Jul 2025 22:10:57 +0800 Subject: [PATCH] fix: the issue where preview fails when the path length exceeds 255 characters (#280) --- crates/ecstore/src/disk/os.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ecstore/src/disk/os.rs b/crates/ecstore/src/disk/os.rs index 1605d8ce..62670206 100644 --- a/crates/ecstore/src/disk/os.rs +++ b/crates/ecstore/src/disk/os.rs @@ -49,7 +49,8 @@ pub fn check_path_length(path_name: &str) -> Result<()> { let mut count = 0usize; for c in path_name.chars() { match c { - '/' | '\\' if cfg!(target_os = "windows") => count = 0, // Reset + '/' => count = 0, + '\\' if cfg!(target_os = "windows") => count = 0, // Reset _ => { count += 1; if count > 255 {