Directory Cleanup Fix
A follow-up fix was merged to properly handle parent directory removal in the cleanup process, addressing an oversight from a previous change that only cleaned up leaf directories.
Duration: PT1M7S
https://podlog.io/listen/frigate-nvr-updates-4774304c/episode/directory-cleanup-fix-4381dc4f
Transcript
Good morning, this is your Frigate NVR Updates for Monday, January 20th, 2026.
johnshaw merged "Remove parents in remove_empty_directories," a critical follow-up to address an incomplete implementation from pull request 21695. The original change only removed empty leaf directories but failed to clean up parent directories as intended. This update implements a level-order traversal from the leaves upward, ensuring the cleanup process works through the entire directory tree. The fix includes a safety condition to prevent accidental removal of the top-level recordings directory, even if it becomes empty.
The changes span two files - the cleanup module and media utilities - with 26 lines added and 12 removed across the codebase. This represents a targeted fix to restore the full functionality of the directory cleanup system while adding protective measures.
What's next: Monitor for any additional edge cases in the directory cleanup process, and watch for related cleanup optimizations as the recording management system continues to evolve.
That's your update for today - we'll be back tomorrow with more Frigate development news.