It works as follows:
The first step is to delete the JPG outtakes in playback mode (using Canon's interface).
Now you have 3 options to use Purge RAW function and erase the corresponding RAW files:
1.-
Delete all RAW files in DCIM folder including subfolders.Useful when:
You keep a separate folder for RAW files.
You set up the camera to create a new folder everyday (several days trek, holydays etc).
You want to erase the occasional mischievous RAW file stored in a different folder. Go to CHDK File Browser, select DCIM folder, push left button to display the popup menu and select "Purge RAW" (See photo 1). A warning will ask you to confirm (See photo 2) and voila! You have regained some SD space.
This feature will search through all the folders in DCIM looking for a RAW file (CRW/CR2 prefix or file extension) and if it finds one then will look for its JPG partner anywhere inside DCIM (comparing the 4 digit number assigned by the camera). If it is not found, the RAW file is erased.
2.-
Delete all RAW files in a selected folder.Useful when:
You keep RAW files in the same folder as JPG files
You only want get rid of some RAW files. (Very important shots in some other folder).
You know which folder has a lot of outtakes.Go to CHDK File Browser and inside DCIM folder select the folder you want (E.g. "102CANON") and push the left button to display the popup menu. Select "Purge RAW". A warning will ask you to confirm and all the RAW files in ONLY that folder will be erased.
This option works like the previous one but only on the selected Canon folder, the rest are untouched.
3.-
Delete some or all RAW files in a list.Useful when:
You want to protect specific RAW files (to use them later for HDR)Go to CHDK File Browser, enter DCIM folder, enter a sub folder (E.g. "102CANON") push the left button to display the popup menu. Select "Purge RAW" (See photo 3). A warning will ask you to confirm and all the RAW files (See photo 4) will be gone.
Now the useful thing of this option is that you can mark the RAW files you DON'T want to erase (protect files). The Purge RAW function will erase the rest of the RAW files ignoring the marked ones.
You can try it here but this is NOT an official build. The purpose should be testing the "Purge RAW" feature only. Do not use it with important shots. Remember, the only way for the community to get stable releases is to try/test these aditions BEFORE commiting. Erasing files in camera is an irreversible operation.
Links updated 7th March. Please report if it works in your camera or not.allbest-w-a460-100d-43.zip - 0.21MBallbest-w-a5xx-all.zip - 0.63MBallbest-w-a6xx-all.zip - 1.12MBallbest-w-a7xx-all.zip - 0.49MBallbest-w-g7-all.zip - 0.84MBallbest-w-ixus-all.zip - 2.07MBallbest-w-s2is-all.zip - 0.63MBallbest-w-s3is-100a-43.zip - 0.21MBixus950_sd850-100c.zip - 0.21MBAny comments/suggestions will be appreciated.
I'm not writing the C code in this post, it is too long. If you want to see it here is the diff file. It is getting complicated so I started adding comments.
purgeraw.diff - 0.01MBCheers!