You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by ti...@apache.org on 2025/04/19 15:12:22 UTC

(opendal) branch transitive-config-method created (now 08db5d9e9)

This is an automated email from the ASF dual-hosted git repository.

tison pushed a change to branch transitive-config-method
in repository https://gitbox.apache.org/repos/asf/opendal.git


      at 08db5d9e9 feat: propagate disable_list_objects_v2 to S3Builder

This branch includes the following new commits:

     new 08db5d9e9 feat: propagate disable_list_objects_v2 to S3Builder

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(opendal) 01/01: feat: propagate disable_list_objects_v2 to S3Builder

Posted by ti...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tison pushed a commit to branch transitive-config-method
in repository https://gitbox.apache.org/repos/asf/opendal.git

commit 08db5d9e938857ad98dd953ae3b667242ffccc6b
Author: tison <wa...@gmail.com>
AuthorDate: Sat Apr 19 23:12:10 2025 +0800

    feat: propagate disable_list_objects_v2 to S3Builder
    
    Signed-off-by: tison <wa...@gmail.com>
---
 core/src/services/s3/backend.rs | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/core/src/services/s3/backend.rs b/core/src/services/s3/backend.rs
index 0a46ebf03..ba19c14c9 100644
--- a/core/src/services/s3/backend.rs
+++ b/core/src/services/s3/backend.rs
@@ -410,6 +410,16 @@ impl S3Builder {
         self
     }
 
+    /// Disable list objects v2 so that opendal will not use the older
+    /// List Objects V1 to list objects.
+    ///
+    /// By default, OpenDAL uses List Objects V2 to list objects. However,
+    /// some legacy services do not yet support V2.
+    pub fn disable_list_objects_v2(mut self) -> Self {
+        self.config.disable_list_objects_v2 = true;
+        self
+    }
+
     /// Disable load credential from ec2 metadata.
     ///
     /// This option is used to disable the default behavior of opendal