Skip to content

Commit

Permalink
Fix b2
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo committed Aug 26, 2024
1 parent f3a8e75 commit 0c12d40
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions core/src/services/b2/lister.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,6 @@ impl oio::PageList for B2Lister {
return Err(parse_error(resp).await?);
}

// Return self at the first page.
if ctx.token.is_empty() && !ctx.done && self.path.ends_with('/') {
let e = oio::Entry::new(&self.path, Metadata::new(EntryMode::DIR));
ctx.entries.push_back(e);
}

let bs = resp.into_body();

let output: ListFileNamesResponse =
Expand Down

0 comments on commit 0c12d40

Please sign in to comment.