Remove empty directories.

This commit is contained in:
tastytea 2020-12-31 01:29:00 +01:00
parent 0cf9f65894
commit 4462676df1
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ function main()
[[ -z "${max_videos}" ]] && local max_videos="last"
find "${download_dir}" -type f -mtime +"${keep_for_days}" -delete
rmdir --ignore-fail-on-non-empty "${download_dir}"/*
mkdir -p "${download_dir}"
local files_before="$(find "${download_dir}" -type f)"