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

clean empty trash node path on delete #4700

Merged
merged 1 commit into from
May 29, 2024

Conversation

butonic
Copy link
Contributor

@butonic butonic commented May 28, 2024

We now delete empty directories in the trash when an item is purged or restored. This prevents old empty directories from slowing down the globbing of trash items.

I'll add an ocis cli cmd to clean up existing trash directories.
find /var/lib/ocis/storage/users/*/*/trash/* -type d -empty -delete

@butonic butonic requested review from a team, labkode and glpatcern as code owners May 28, 2024 13:32
@butonic butonic self-assigned this May 28, 2024
@butonic butonic added the bug Something isn't working label May 28, 2024
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
@butonic butonic merged commit bc2b94a into cs3org:edge May 29, 2024
9 checks passed
@butonic butonic deleted the clean-trash-node-path branch May 29, 2024 15:03
@micbar micbar mentioned this pull request Jun 19, 2024
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants