rmlint icon indicating copy to clipboard operation
rmlint copied to clipboard

Filter input - only files with same relative paths

Open james-cook opened this issue 3 years ago • 1 comments

Is there any way to filter input to allow only files with same relative paths through. Something like the existing --match-basename but for paths?

i.e. a duplicate file is only found if it shares the same relative path - with an option such as --match-dirname...

Pseudo code: rmlint <other options> --keep-all-tagged --match-dirname --match-basename DIR1 // DIR2

(This would only work/make sense with tagging I think, and --must-match-tagged would not be needed in this case as files must have the same relative path in any case)

james-cook avatar Jan 24 '22 12:01 james-cook

@james-cook , I've implemented something like this here: https://github.com/sahib/rmlint/pull/640

ttyusupov avatar Nov 12 '23 19:11 ttyusupov