Repository navigation
feat(storage): add delete_folder_recursive sample - #6905
Draft
nidhiii-27 wants to merge 2 commits into
Draft
nidhiii-27 wants to merge 2 commits into
nidhiii-27 wants to merge 2 commits into
Conversation
Add the storage_control_delete_folder_recursive sample demonstrating recursive folder deletion in Hierarchical Namespace (HNS) buckets using StorageControl::delete_folder_recursive. Fixes b/521168740 [Generated-by: AI]
Contributor
There was a problem hiding this comment.
Code Review
This pull request adds a new example demonstrating how to recursively delete a folder using the Google Cloud Storage Control client. It introduces the delete_folder_recursive module, which triggers the recursive deletion and polls the long-running operation until completion. The example is integrated into the run_managed_folder_examples function in lib.rs, where a nested folder hierarchy is created and then deleted. There are no review comments, and I have no feedback to provide.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6905 +/- ##
==========================================
- Coverage 97.19% 97.12% -0.07%
==========================================
Files 326 326
Lines 110017 110017
==========================================
- Hits 106927 106855 -72
- Misses 3090 3162 +72 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…test Gracefully skip verification and clean up child and parent folders sequentially when the test project's bucket does not have recursive folder deletion enabled (`INVALID_ARGUMENT: Recursive folder delete is not enabled for this bucket.`). [Generated-by: AI]
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the
storage_control_delete_folder_recursivesample demonstrating recursive folder deletion in Hierarchical Namespace (HNS) buckets usingStorageControl::delete_folder_recursive.Fixes b/521168740
[Generated-by: AI]