1. Andy Mikhailenko
  2. scripts

Commits

Andy Mikhailenko  committed a673606

sort_photos: more adequate verbose message.

  • Participants
  • Parent commits f23cd2c
  • Branches default

Comments (0)

Files changed (1)

File sort_photos.py

View file
     # make year/month/day/ directory
     date_dirs = u'{0.year}/{0.month:02d}/{0.day:02d}'.format(dt)
     inner_dest_dir = os.path.join(dest_dir, date_dirs)
-    if verbose:
-        print '  mkdir -p', inner_dest_dir
     if not dry_run:
         if not os.path.exists(inner_dest_dir):
+            if verbose:
+                print '  mkdir -p', inner_dest_dir
             os.makedirs(inner_dest_dir)
 
     dest = os.path.join(inner_dest_dir, name)