← Back to Tools
P

purge-stale-video-dirs

Removes video directories that no longer contain any video files, intended for cron automation.

Bash Markdown

Overview

A Bash script that scans a base directory containing channel folders and removes any subdirectory that holds no video files. Designed to be run unattended (e.g., as a cron job) to clean up stale media directories.

Tech stack

  • Bash
  • Standard Unix utilities (find, rm)
  • Markdown