fix: the automatic logout issue and user list display failure on Windows systems (#353) (#343) (#403)

Co-authored-by: 安正超 <anzhengchao@gmail.com>
This commit is contained in:
shiro.lee
2025-08-14 00:20:27 +08:00
committed by GitHub
parent d552210b59
commit c7c149975b
+6 -1
View File
@@ -172,7 +172,12 @@ impl ObjectStore {
}
if let Some(info) = v.item {
let name = info.name.trim_start_matches(&prefix).trim_end_matches(SLASH_SEPARATOR);
let object_name = if cfg!(target_os = "windows") {
info.name.replace('\\', "/")
} else {
info.name
};
let name = object_name.trim_start_matches(&prefix).trim_end_matches(SLASH_SEPARATOR);
let _ = sender
.send(StringOrErr {
item: Some(name.to_owned()),