Skip to content

Instantly share code, notes, and snippets.

View jdmonaco's full-sized avatar
🤖

Joseph Monaco jdmonaco

🤖
View GitHub Profile
@jdmonaco
jdmonaco / organize-photos.py
Last active October 29, 2021 20:35 — forked from cliss/organize-photos.py
Update of @cliss's update of Dr. Drang's photo management scripts. Replaced shutil calls with subprocess calls. Added a log file that gets written to the destination directory. Source can now be a directory tree (using os.walk). Replaced comments/docstrings with slightly better code organization and function names. Replaced path string concatena…
#!/usr/bin/env python
"""
organize-photos.py - Organize an unstructured folder tree of photos and movie
files into a month-and-year folder structure.
Note: This is a minor rewrite of @cliss's extension [1,2] of @drdrang's
photo management scripts [3], and includes a tweak from @jamiepinkham [4,5].
The lists of raw [6] and video [7] file extensions were found elsewhere.