A Python automation script that sorts photos into certain directories based on the date they were taken.
The script uses image metadata, specifically the date the photo was taken, to determine what directories to create and where to move the photos.
All new directories are created using os.makedirs()
with exist_ok=True
, so if you already have a directory named 2022
in the target directory (the place where your unsorted photos are stored), nothing will be deleted or overwritten. However, directories may be added within that directory depending on the sorting method you choose.