Ett litet python-script för att ta bort raw-bilder om inte motsvarande jpg-bild finns i katalogen.
import os | |
import shutil | |
raw_ext = '.NEF' | |
jpg_ext = '.JPG' | |
destination = 'raws' | |
for filename in os.listdir('.'): | |
(shortname, extension) = os.path.splitext(filename) | |
if extension == raw_ext: | |
if os.path.isfile(shortname + jpg_ext) == False: | |
print 'Moving ' + shortname + raw_ext + '...' | |
shutil.move(shortname + raw_ext, destination) |
/Simon
Comments
You can follow this conversation by subscribing to the comment feed for this post.