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

felipecrv pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 47f4d18ec5 GH-38702 [C++]: Implement 
AzureFileSystem::DeleteRootDirContents (#39151)
47f4d18ec5 is described below

commit 47f4d18ec5c42a9652d9f9bec18adb9cf5fb0e55
Author: Felipe Oliveira Carvalho <[email protected]>
AuthorDate: Sat Dec 9 21:15:20 2023 -0300

    GH-38702 [C++]: Implement AzureFileSystem::DeleteRootDirContents (#39151)
    
    ### Rationale for this change
    
    This copies the behavior implemented by S3FileSystem.
    
    ### What changes are included in this PR?
    
    An implementation of `DeleteRootDirContent` that prevents deletion of all 
blob containers.
    
    ### Are these changes tested?
    
    N/A.
    * Closes: #38702
    
    Authored-by: Felipe Oliveira Carvalho <[email protected]>
    Signed-off-by: Felipe Oliveira Carvalho <[email protected]>
---
 cpp/src/arrow/filesystem/azurefs.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpp/src/arrow/filesystem/azurefs.cc 
b/cpp/src/arrow/filesystem/azurefs.cc
index daababb04c..824a8fb531 100644
--- a/cpp/src/arrow/filesystem/azurefs.cc
+++ b/cpp/src/arrow/filesystem/azurefs.cc
@@ -1427,7 +1427,7 @@ Status AzureFileSystem::DeleteDirContents(const 
std::string& path, bool missing_
 }
 
 Status AzureFileSystem::DeleteRootDirContents() {
-  return Status::NotImplemented("The Azure FileSystem is not fully 
implemented");
+  return Status::NotImplemented("Cannot delete all Azure Blob Storage 
containers");
 }
 
 Status AzureFileSystem::DeleteFile(const std::string& path) {

Reply via email to