mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-21 11:56:38 +00:00
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:
@@ -172,7 +172,12 @@ impl ObjectStore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let Some(info) = v.item {
|
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
|
let _ = sender
|
||||||
.send(StringOrErr {
|
.send(StringOrErr {
|
||||||
item: Some(name.to_owned()),
|
item: Some(name.to_owned()),
|
||||||
|
|||||||
Reference in New Issue
Block a user