Clean up leftover temp files on transcode-hevc startup
Removes any .transcode-* files left behind by interrupted runs before starting the encoding loop. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7ef39af81b
commit
3c6e86aca9
1 changed files with 6 additions and 0 deletions
|
|
@ -156,6 +156,12 @@ else
|
|||
SEEDED_SIZES=""
|
||||
fi
|
||||
|
||||
# Clean up leftover temp files from interrupted runs
|
||||
while IFS= read -r -d '' tmpfile; do
|
||||
log "Cleaning up leftover temp file: $tmpfile"
|
||||
rm -f "$tmpfile"
|
||||
done < <(find "$SEARCH_DIR" -type f -name ".transcode-*" -print0)
|
||||
|
||||
# Counters
|
||||
total=0
|
||||
skipped_hevc=0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue