Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into prometheus-consiste…
Browse files Browse the repository at this point in the history
…nt-apis
  • Loading branch information
koushiro committed Aug 30, 2024
2 parents af4dd4d + 309d3eb commit badde9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/services/fs/lister.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ impl oio::BlockingList for FsLister<std::fs::ReadDir> {
meta
};

let p = if metadata.is_dir() {
let entry = if metadata.is_dir() {
// Make sure we are returning the correct path.
&format!("{rel_path}/")
oio::Entry::new(&format!("{rel_path}/"), metadata)
} else {
&rel_path
oio::Entry::new(&rel_path, metadata)
};

Ok(Some(oio::Entry::new(p, metadata)))
Ok(Some(entry))
}
}

0 comments on commit badde9d

Please sign in to comment.