find-dups: Have options for removing duplicates
find-dups
should have options for removing duplicates. This is a complex UI problem; here are some non-mutually-exclusive ways to solve it:
- Option to remove dup when it's in a certain subdir (but remember to ensure that at least one copy is preserved!)
- Options to preserve the dup with the oldest/newest timestamp
-
Option to keep copies under one subdirectory and remove all others (e.g.,
--keep-under FOO
means to keep copy or copies anywhere under FOO and delete any others found elsewhere) -
Similarly,
--keep-name-regexp
and--keep-path-regexp
A problem with these is that their verb is "keep", which doesn't sufficiently convey the destructiveness here. Maybe --delete-dups-outside
would be better.