This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/main by this push:
new ad020fda7 refactor(core): use `list_with` in `Operator::list` (#3305)
ad020fda7 is described below
commit ad020fda78af862faaa6ef6bf92e4465d011bde3
Author: G-XD <[email protected]>
AuthorDate: Mon Oct 16 18:12:25 2023 +0800
refactor(core): use `list_with` in `Operator::list` (#3305)
---
core/src/types/operator/operator.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/src/types/operator/operator.rs
b/core/src/types/operator/operator.rs
index 8c8539bfd..00bb13e10 100644
--- a/core/src/types/operator/operator.rs
+++ b/core/src/types/operator/operator.rs
@@ -1007,7 +1007,7 @@ impl Operator {
/// # }
/// ```
pub async fn list(&self, path: &str) -> Result<Vec<Entry>> {
- self.lister_with(path).await?.try_collect().await
+ self.list_with(path).await
}
/// List entries within a given directory with options.