[PR #12025] Fix empty image folder removal for legacy locations #13070

Closed
opened 2026-02-07 07:06:36 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/jellyfin/jellyfin/pull/12025

State: closed
Merged: Yes


Regression from #11934
Recursive removal is too wide scoped, so limit it to remove the legacy metadata directory for episodes

Changes

  • Limit scope of empty directory removal after image removal
  • Add helper class for recursive empty folder removal
  • Do not remove images from items if they could not be removed from the file system

Issues
Fixes #12023 (potentially)

**Original Pull Request:** https://github.com/jellyfin/jellyfin/pull/12025 **State:** closed **Merged:** Yes --- Regression from #11934 Recursive removal is too wide scoped, so limit it to remove the legacy `metadata` directory for episodes **Changes** * Limit scope of empty directory removal after image removal * Add helper class for recursive empty folder removal * Do not remove images from items if they could not be removed from the file system **Issues** Fixes #12023 (potentially)
OVERLORD added the pull-request label 2026-02-07 07:06:36 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#13070