-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
FileCache: Clean up empty directories on remove() #3162
Comments
lukasbestle
added
the
type: enhancement ✨
Suggests an enhancement; improves Kirby
label
Feb 19, 2021
afbora
added a commit
that referenced
this issue
Mar 10, 2021
4 tasks
afbora
added a commit
that referenced
this issue
Mar 10, 2021
4 tasks
afbora
added a commit
that referenced
this issue
Mar 13, 2021
Since there may be a performance problem, an iterative solution that suggested by @lukasbestle has been applied instead of recursive.
afbora
added a commit
that referenced
this issue
Mar 13, 2021
afbora
added a commit
that referenced
this issue
Mar 14, 2021
bastianallgeier
added a commit
that referenced
this issue
Mar 17, 2021
…pty-directories FileCache: Clean up empty directories on remove() #3162
✅ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a cache item is removed, it may leave behind an empty directory.
The
FileCache::remove()
method should check if the directory the item was in is now empty. If it is, it should delete the empty directory. Then it should check the same for the next level up until the root is reached (which should not be deleted).The text was updated successfully, but these errors were encountered: