mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-17 18:27:49 +00:00
fix list object err (#831)
fix list object err (#831) #827 #815 #635 #752
This commit is contained in:
@@ -1136,23 +1136,21 @@ 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()
|
||||||
})
|
})
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
if opts.recursive {
|
if opts.recursive {
|
||||||
if let Err(er) = Box::pin(self.scan_dir(pop, prefix.clone(), opts, out, objs_returned)).await {
|
if let Err(er) = Box::pin(self.scan_dir(pop, prefix.clone(), opts, out, objs_returned)).await {
|
||||||
error!("scan_dir err {:?}", er);
|
error!("scan_dir err {:?}", er);
|
||||||
}
|
|
||||||
}
|
|
||||||
dir_stack.pop();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
dir_stack.pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut meta = MetaCacheEntry {
|
let mut meta = MetaCacheEntry {
|
||||||
|
|||||||
Reference in New Issue
Block a user