From cc01e704f47886e56e775ed285151a1bdf852ba3 Mon Sep 17 00:00:00 2001 From: oldoldman Date: Mon, 14 Apr 2025 19:11:11 +0800 Subject: [PATCH] Update mod.rs --- rust/cubestore/cubestore/src/remotefs/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rust/cubestore/cubestore/src/remotefs/mod.rs b/rust/cubestore/cubestore/src/remotefs/mod.rs index 0aedcf4c4cbd3..c0102f27703db 100644 --- a/rust/cubestore/cubestore/src/remotefs/mod.rs +++ b/rust/cubestore/cubestore/src/remotefs/mod.rs @@ -429,10 +429,11 @@ impl LocalDirRemoteFs { .to_str() .unwrap() .to_string() - .replace(&remote_dir.to_str().unwrap().to_string(), "") + .replace("\\","/") + .replace(&remote_dir.to_str().unwrap().to_string().replace("\\","/"), "") .trim_start_matches("/") .to_string(); - if relative_name.starts_with(&remote_prefix) { + if relative_name.starts_with(&remote_prefix.replace("\\","/")) { result.push(RemoteFile { remote_path: relative_name.to_string(), updated: DateTime::from(metadata.modified()?),