Skip to content

Commit

Permalink
apacheGH-38702 [C++]: Implement AzureFileSystem::DeleteRootDirContents (
Browse files Browse the repository at this point in the history
apache#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: apache#38702

Authored-by: Felipe Oliveira Carvalho <felipekde@gmail.com>
Signed-off-by: Felipe Oliveira Carvalho <felipekde@gmail.com>
  • Loading branch information
felipecrv authored and mapleFU committed Dec 13, 2023
1 parent 2341bba commit 40b1c68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/filesystem/azurefs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 40b1c68

Please sign in to comment.