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

Enable automatic cleanup for local file systems #699

Merged
merged 10 commits into from
Oct 11, 2024

Conversation

lizardoluis
Copy link
Collaborator

Currently the way to delete a "directory" through the ObjectStore interface is to call list with the directory path as prefix and then pipe that to delete_stream.

This is the correct way to do this for object storage since "directories" don't really exist and the path is just a prefix to individual objects.

But for actual filesystems directories are actual inodes themselves in the filesystem which should be cleaned up. This flag enables the automatic cleanup of empty directories when deleting files.

@lizardoluis lizardoluis self-assigned this Oct 9, 2024
@lizardoluis lizardoluis marked this pull request as ready for review October 10, 2024 14:26
@lizardoluis lizardoluis merged commit c1aa9eb into main Oct 11, 2024
2 checks passed
@lizardoluis lizardoluis deleted the local-file-system-automatic_cleanup branch October 11, 2024 06:35
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.

2 participants