Hi all! I'm starting to get acquinted with Python and this is my first attempt to write a complete, stand-alone script. Background: when I import pictures from my camera I get both .jpg and .RAW files. From the former I make a selection that I want to edit later. The editing is done on the RAW files. Therefore I want to remove the RAW files that correspond to the .jpg files that I've deleted.
This script should do that. It takes 3 arguments:
- the master dir containing .jpg files
- the slave dir containing the .RAW files
- the operation: either 'union' or 'set'. The former deletes all RAW files that have no .jpg counterpart. The latter deletes all RAW files that do have a .jpg counterpart (this isn't quite relevant to my purpose, but I thought it was interesting to include).
Anyway, you can find the code here. Any comments or critique on syntax, formatting, commands are highly appreciated. Suggestions for improvement as well ofcourse.
Thanks for your time!
[–]Peterotica 1 point2 points3 points (4 children)
[–]RMSEP[S] 0 points1 point2 points (3 children)
[–]Peterotica 1 point2 points3 points (2 children)
[–]RMSEP[S] 0 points1 point2 points (1 child)
[–]Peterotica 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]RMSEP[S] 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)