Skip to content

Commit

Permalink
fix(services/upyun): fix list api (#3841)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoslo authored Dec 28, 2023
1 parent 34faf32 commit dbb1060
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion core/src/services/upyun/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ impl Accessor for UpyunBackend {

list: true,
list_with_limit: true,
list_with_recursive: true,

..Default::default()
});
Expand Down
2 changes: 1 addition & 1 deletion core/src/services/upyun/lister.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl oio::PageList for UpyunLister {
ctx.token = response.iter;

for file in response.files {
let path = build_abs_path(&format!("/{}", &self.path), &file.name);
let path = build_abs_path(&normalize_root(&self.path), &file.name);

let entry = if file.type_field == "folder" {
let path = format!("{}/", path);
Expand Down

0 comments on commit dbb1060

Please sign in to comment.