A script to remove (delete) "sidecar" JPEG files.
A sidecar jpeg file is a file which has the same name as a paired RAW image file which is generated by digital cameras or RAW development softwares. Note that JPEG files which is a master image will not be targeted so this script only targets JPEG files which can be regenerated by RAW development process.
For example, if there are directories and image files as below:
2014-03-07 Tokyo/_3070001.jpg
/_3070001.ORF
/DSCN0186.jpg
2014-03-08 Yokohama/_3090001.jpg
/_3090002.ORF
executing this script will remove 2014-03-07 Tokyo/_3070001.jpg
only.
Full command line usage is:
Usage: rm-sidecar-jpeg [-f] [-l] [-h] [DIRECTORY]
A script to remove (delete) "sidecar" JPEG files recursively.
A sidecar jpeg file is a file which has the same name as a paired RAW
image file which is generated by digital cameras or RAW development
softwares. Note that JPEG files which is a master image will not be
targeted so this script only targets JPEG files which can be
regenerated by RAW development process.
This scripts searches the DIRECTORY and its subdirectories for JPEG
files if specified. If no directory was specified, this scripts searches
current directory.
Options:
-f remove sidecar JPEG files without a prompt
-l just list sidecar JPEG files
-h show this help message and exit
Any platform where Python runs so:
- Windows (tested with Python 3.3)
- Mac OS X (not tested)
- Linux (not tested)
- This script DELETES YOUR DATA PERMANENTLY so please do not use unless you understand what this script do.