jdupes
jdupes copied to clipboard
feature request, mode where duplicates are only found between given dirs, but not withen the same given dirs
What jdupes version are you using?
1.21.0
Where did you get your copy of the jdupes binary?
[ ] Official binary from jdupes releases [X] OS distribution repository (Linux, Homebrew, etc. - put distro's name/version in text block below) [ ] I personally compiled it from source code (paste your build commands in the text block below) [ ] Other (please explain below)
Debian sid
Have you searched in Issues?
[X] I have searched for my problem in Issues and I am confident that this is not a duplicate of a previous reported issue or feature request.
Well #8 is similar to some extent, but not exactly the same, I think. There it's asked for to be able to exclude some folder from removal (or listing files from it). But what I want is a bit different, as shown below.
Not exactly sure whether #121 is the same. If it is, then sorry for the noise and just close as a duplicate.
I have done my due diligence
[X] I am not suggesting changing the hash algorithm, storing files in a database, comparing file data blocks differently, suggesting that file sizes should be used before comparison, or other common suggestions that indicate I haven't read the documentation, code, or examined the issue tracker entries to discover that all of these things have already been implemented or won't make a difference if they were implemented. I have done my due diligence before asking for help or making a suggestion.
Issue or feature request details
What I often have is e.g. folders A
, B
and C
which may contain any duplicates:
- So it could be, that one file has duplicates in
B
andC
, but no single occurrence inA
- Or several ones in e.g.
C
. But especially no single occurrence inA
. - Or at the file exists at least once (or more) in
A
and any further duplicates of it exist inB
and/orC
.
- I then would like to keep
A
as the master, and not delete any files within/below it, even if there are duplicates of the same file inA
. - But I would want to list/delete any files, which are of
B
orC
, but only when they're also inA
(again not listing/deleting the one fromA
itself.
So in the above list of duplicate cases, only such from (3) should be listed/deleted, but not those from (1) or (2).
In simpler words, I'd want to remove any duplicates from B
and C
(only) as long as they're at least once in A
.
Also, there could be additional D
, E
, etc..
If single files were to be given as parameters, then they should behave just as above, i.e. if A
was as single file... only it's duplicates in B
and C
were to be deleted. Whereas if e.g. B
was a single file, it should be only removed if it was also in A
(regardless of whether or not it was in C
).
Thanks, Chris