Skip to content

Instantly share code, notes, and snippets.

View ledzep2's full-sized avatar

Russell Wu ledzep2

  • autonomic.ai
  • Palo Alto, CA
View GitHub Profile
@ledzep2
ledzep2 / gist:cf36238653b4a8dff074
Last active August 29, 2015 14:06
Move all photos/videos/audios to date directories and optionally rename to a date format. Use exiftool to extract REAL creation date.
import os, sys, datetime, shutil, subprocess as sp
class D(object):
def __init__(self, format = '%Y/%m', filename_format = None):
self.files = {}
self.format = format
self.filename_format = filename_format
with open('.args', 'w') as f:
pass
from django.core.exceptions import ValidationError
from django.db.models import Field, CharField
__all__ = ['MultiColumnField']
try:
from hashlib import md5
except ImportError:
from md5 import new as md5