Skip to content

Instantly share code, notes, and snippets.

@hcl337
hcl337 / MovePhotosToDirectoriesYearMonth.py
Last active November 11, 2017 19:10
Here is a simple script to organize pictures by year and month updating their metadata for creation date to be on the modified date if it is incorrect. I used it to organize the 29,000 images I exported from iPhoto to use in Lightroom. Wrote it in a few minutes so no warranty... :-)
import os
import sys
import time, json, datetime
import ntpath
import subprocess
maxFiles = 100000000