Time to be with your loved ones

Time to be with loved ones

by sat

submit your photo


Hall of Fame
View past winners from this year

Please participate in Meta
and help us grow.

Tag Info

New answers tagged

0

I wrote following Pyhton script for this. # Script: remove_jpg_if_raw_exists.py # # Description: This script looks in all sub directories for # pairs of JPG and RAW files. # For each pair found the JPG is moved to a # waste basket directory. # Otherwise JPG is kept. # # Author: Thomas Dahlmann ...


4

Here's a Python script which moves .jpg files, if no RAW exists. Useful in Mac OS! import os import shutil raw_ext = '.CR2' jpg_ext = '.JPG' destination = '/Users/JohnSmith/Desktop/jpgs/' for filename in os.listdir('.'): (shortname, extension) = os.path.splitext(filename) if extension == raw_ext: if os.path.isfile(shortname + jpg_ext): ...



Top 50 recent answers are included