Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix: Adds removeParents in DeleteObject in case of deleting an object… #1079

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

niksis02
Copy link
Contributor

Fixes #1030

DeleteObject used to delete only the file object, if it had been nested inside some directories in the filesystem.
e.g.
obj: foo/bar/baz
Only baz was deleted and foo/bar directories were left in the filesystem.
The PR adds the removeParents function call for DeleteObject which cleans up the parent directories for the object on deletion.

@benmcclelland benmcclelland merged commit e256a1a into main Feb 21, 2025
24 checks passed
@benmcclelland benmcclelland deleted the fix/versioning-nested-object-deletion branch February 21, 2025 02:01
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.

[Bug] - with versioning, object lock enabled, deleted file with '/' in middle leaves phantom folder in gateway
2 participants