I made this script for personal use, to organize photos after downloading them from the smartphone or memory card.

Maybe it’s useful to the rest of you: