fix list object err (#831)

fix list object err (#831)

#827
#815
#635
#752
This commit is contained in:
weisd
2025-11-10 23:42:15 +08:00
committed by GitHub
parent 5941062909
commit 77a3489ed2
+3 -5
View File
@@ -1136,9 +1136,9 @@ impl LocalDisk {
let name = path_join_buf(&[current.as_str(), entry.as_str()]); let name = path_join_buf(&[current.as_str(), entry.as_str()]);
if !dir_stack.is_empty() { while let Some(pop) = dir_stack.last().cloned()
if let Some(pop) = dir_stack.last().cloned() { && pop < name
if pop < name { {
out.write_obj(&MetaCacheEntry { out.write_obj(&MetaCacheEntry {
name: pop.clone(), name: pop.clone(),
..Default::default() ..Default::default()
@@ -1152,8 +1152,6 @@ impl LocalDisk {
} }
dir_stack.pop(); dir_stack.pop();
} }
}
}
let mut meta = MetaCacheEntry { let mut meta = MetaCacheEntry {
name, name,