Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for folder deletion #170

Merged
merged 3 commits into from
Jun 24, 2019
Merged

Conversation

nitzanj
Copy link
Contributor

@nitzanj nitzanj commented Jun 16, 2019

No description provided.

@@ -519,6 +519,11 @@ public ApiResponse updateResourcesAccessModeByTag(String accessMode, String tag,
return updateResourcesAccessMode(accessMode, "tag", tag, options);
}

public ApiResponse deleteFolder(String folder, Map options) throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nitzanj , please add a javadoc and explain how the 'folder' string supposed to look like

@@ -935,4 +936,14 @@ public void testQualityAnalysis() throws Exception {
ApiResponse result = cloudinary.api().resource(API_TEST, ObjectUtils.asMap("quality_analysis", true));
assertNotNull(result.get("quality_analysis"));
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nitzanj , what are we expected to get when deleting a non-existing folder or a non-empty one?
Let's add a test

@nitzanj nitzanj merged commit d03ca73 into master Jun 24, 2019
@nitzanj nitzanj deleted the feature/support-folder-deletion branch June 24, 2019 09:07
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants