This commit is contained in:
rozbrian
2026-01-10 20:46:22 +09:00
commit 304cbcc554
66 changed files with 1291 additions and 0 deletions

12
tvshow_remove_empty Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
#
# Find and remove empty directories
#
# Find and process empty directories
TARGET_DIR="$DS918_DIR/video/#tvshow"
cd "$TARGET_DIR"
find . -maxdepth 1 -type d -empty -print0 | while IFS= read -r -d '' dir; do
echo "$dir to be removed"
rm -r "$dir" || echo "Failed to remove $dir"
done