P
Purge Stale Video Dirs
A cron-ready Bash script that removes empty video directories by checking for missing video files.
Bash Markdown
Overview
A lightweight script for cleaning up media libraries. It scans a given base directory for subdirectories that no longer contain any video files, then removes them. Designed to be run on a schedule via cron, with dry-run and logging options to prevent accidental deletions.
Tech stack
- Bash 4+
- Standard Unix utilities (find, rm)