How to filter results from a dupe/grouping on condition that one of the dupe files is in a path containing "some thing"?

Discussion related to "Everything" 1.5.
Post Reply
TheBestPessimist
Posts: 46
Joined: Sat Jan 14, 2023 6:36 pm

How to filter results from a dupe/grouping on condition that one of the dupe files is in a path containing "some thing"?

Post by TheBestPessimist »

I am searching my photos for duplicates. I have md5 indexed multiple folders at different paths.

My current search looks like this (the whitespace is for my easier readability):

Code: Select all

dupe:MD5;Name       sort:Name;md5       md5:     !path:<"patrunjel" | "baka poka B"> 
What i want to achieve now is to search for duplicates of files of a single folder INTO all my library (except for that little !path above).
You can consider i want to take it 'folder by folder'.

Example:

I have all the dupes above, and i want to filter this only to dupes which exist in folder
what to do with these


So valid groups are:

Code: Select all

G:\My Drive\pozen si video in lucru\2019-09 -- Marrakech - Malaga\1\Canon\IMG_7173.CR2
G:\My Drive\pozen si video in lucru\what to do with these\2\1. Marrakech\Canon\CR2\IMG_7173.CR2
G:\My Drive\pozen si video in lucru\abracadabra\what to do with these\2\1. Marrakech\Canon\CR2\IMG_7173.CR2
But an invalid group is (invalid because none of the dupes is in a path containing
what to do with these
):

Code: Select all

G:\My Drive\pozen si video in lucru\2019-09 -- Marrakech - Malaga\1\Canon\IMG_7173.CR2
G:\My Drive\pozen si video in lucru\abracadabra\2\1. Marrakech\Canon\CR2\IMG_7173.CR2

Can i do the same for 2 folder patterns, ie
<"what to do with these" | "another path that i want to check">
.

Basically, i'm looking for something like this:

Code: Select all

dupe:MD5;Name       sort:Name;md5       md5:     !path:<"patrunjel" | "baka poka B">     dupe-path-contains:<"what to do with these" | "another path that i want to check">
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: How to filter results from a dupe/grouping on condition that one of the dupe files is in a path containing "some thi

Post by NotNull »

Note: all untested!


There is a new search function in 1.5, dupe-from: that can help you here:

Code: Select all

!path:<"patrunjel" | "baka poka B">   md5:   dupe-from:"G:\My Drive\pozen si video in lucru\abracadabra\what to do with these\"   dupe:MD5;Name     

dupe-from: takes a single foldername as a parameter.
A way for multiple foldernames:
  • OPen 3 tabs in Everything
  • First tab:

    Code: Select all

    [code]!path:<"patrunjel" | "baka poka B">   md5:   dupe-from:"G:\First Folder\"   dupe:MD5;Name     
    
  • Second tab:

    Code: Select all

    [code]!path:<"patrunjel" | "baka poka B">   md5:   dupe-from:"G:\Second Folder\"   dupe:MD5;Name     
    
  • Third tab:

    Code: Select all

    filelist1: | filelist2:     dupe:MD5;Name
  • Copy all results from first tab ('CTRL + A', 'CTRL + SHIFT + C' )
  • In tab3, right-click filelist1:
  • Select Edit File List Slot from the context menu
  • Paste the results from tab1
  • Copy all results from tab2
  • In tab3, right-click filelist2:
  • Select Edit File List Slot from the context menu
  • Paste the results from tab2
Tab3 now should contain the desired results.


(Still like your username :D ; in the meantime I found out that it is also the name of a band (instrumental post-rock; right up my alley ..)
TheBestPessimist
Posts: 46
Joined: Sat Jan 14, 2023 6:36 pm

Re: How to filter results from a dupe/grouping on condition that one of the dupe files is in a path containing "some thi

Post by TheBestPessimist »

NotNull wrote: Fri Apr 11, 2025 7:54 pmusername [...] I found out that it is also the name of a band
Yes, I also found out there's a band with the same name. So i'm not even original :(

They do offer a funny wordplay with some of their songs: 'The Best Pessimist - Walking with Happiness'.


--------

dupe-from:"/obligatory/fullpath/and/a/single/path/not/a/list/here"
works as expected. Thanks for that.
I am embarrassed that i didn't see the function which is just below the dupe: function 🤦.


I have a few requests about this function though: can it be made to work similar to the
path
function?
- can it work with substrings in the path
dupe-from:"baka poka B"
(instead of
dupe-from:"c:/the/full/path/to/baka poka B"

- can it work with a list of paths (and substrings of path mentioned above):
dupe-from:<"patrunjel" | "baka poka B">

@void, Do you think it makes sense to improve
dupe-from
like i suggest?
Post Reply