You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2023/06/15 15:32:13 UTC

[incubator-opendal] 01/01: fix(services/gcs): GCS should support create dir

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

xuanwo pushed a commit to branch fix-gcs-create-dir
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit e78a40c200d0bde0ea70416420d81112379d08bb
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Thu Jun 15 23:31:47 2023 +0800

    fix(services/gcs): GCS should support create dir
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
 core/src/services/gcs/backend.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/src/services/gcs/backend.rs b/core/src/services/gcs/backend.rs
index 93161637a..e9436359f 100644
--- a/core/src/services/gcs/backend.rs
+++ b/core/src/services/gcs/backend.rs
@@ -405,6 +405,8 @@ impl Accessor for GcsBackend {
             .set_root(&self.core.root)
             .set_name(&self.core.bucket)
             .set_capability(Capability {
+                create_dir: true,
+
                 stat: true,
                 stat_with_if_match: true,
                 stat_with_if_none_match: true,