Skip to content

Conversation

@yang07861
Copy link
Contributor

The S3 folder deletion was failing on some S3-compatible services because the folder's own placeholder object was not being deleted. This was happening because the API for listing folder contents on these services does not include the folder's placeholder object.

This commit fixes the issue by adding an explicit DeleteObject command to the deleteBucketFolder function in src/main/manage/apis/s3plist.ts. This command is executed after all the contents and subfolders of the folder have been deleted, ensuring that the folder's own key (e.g., my-folder/) is also deleted. This change improves the compatibility of the folder deletion feature with different S3 services.

The S3 folder deletion was failing on some S3-compatible services because the folder's own placeholder object was not being deleted. This was happening because the API for listing folder contents on these services does not include the folder's placeholder object.

This commit fixes the issue by adding an explicit `DeleteObject` command to the `deleteBucketFolder` function in `src/main/manage/apis/s3plist.ts`. This command is executed after all the contents and subfolders of the folder have been deleted, ensuring that the folder's own key (e.g., `my-folder/`) is also deleted. This change improves the compatibility of the folder deletion feature with different S3 services.
@Kuingsmile Kuingsmile force-pushed the dev branch 2 times, most recently from 8e0d7d6 to c917ee3 Compare January 11, 2026 05:12
@Kuingsmile Kuingsmile force-pushed the dev branch 2 times, most recently from faec405 to 78ccf30 Compare January 16, 2026 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant