# rename_pairs.py — still.jpg ↔ still-loop.mp4
# For a batch of product shots we generate a short loop from each still
# with an [visit website](https://w...content-available-to-author-only...3.io/) (Wan 3.0) and keep the names in lockstep.
import pathlib
for p in pathlib.Path('.').glob('*-still.jpg'):
    loop = p.with_name(p.name.replace('-still.jpg','-loop.mp4'))
    print(p.name, '->', loop.name if loop.exists() else 'MISSING')