Custumn column code for dupes with common path subsection

Discussion related to "Everything" 1.5 Alpha.
Post Reply
anmac1789
Posts: 670
Joined: Mon Aug 24, 2020 1:16 pm

Custumn column code for dupes with common path subsection

Post by anmac1789 »

Hello, everyone, I know that regex fileexists: works very well but it's limitation is that the exact paths to duplicate files must be defined to compare them. I'm looking for a custom column soltion so that a file's path can be truncated according to a subsection of text in the path. For example,

file1.jpg -- U:\xiaomi mi max (older version) (fedora exclude all files)\voidtools\everything\Internal shared storage\Android\data\cn.wps.moffice_eng\.cache\KingsoftOffice\.history

file2.jpg -- U:\xiaomi mi max (older version)(verify all files)\Internal shared storage\Android\data\cn.wps.moffice_eng\.cache\KingsoftOffice\.history

In both the paths above, the subsection path "Internal shared storage\Android\data\cn.wps.moffice_eng\.cache\KingsoftOffice\.history" is common for both file1.jpg and file2.jpg. What syntax or command can I use to put in a custom column combined with the name, and size and dm: so that I can find variable path duplicates according to a subsection in the path ?
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Custumn column code for dupes with common path subsection

Post by NotNull »

"\Internal shared storage\Android\data\cn.wps.moffice_eng\.cache\KingsoftOffice\.history\*"


After that, you can right-click a resultlist header column and select "Find xxx duplicates".
Instead of selecting "Find xxx duplicates", you can also right-click that contextmenu entry to get even more options.
anmac1789
Posts: 670
Joined: Mon Aug 24, 2020 1:16 pm

Re: Custumn column code for dupes with common path subsection

Post by anmac1789 »

NotNull wrote: Wed May 03, 2023 6:01 pm
"\Internal shared storage\Android\data\cn.wps.moffice_eng\.cache\KingsoftOffice\.history\*"


After that, you can right-click a resultlist header column and select "Find xxx duplicates".
Instead of selecting "Find xxx duplicates", you can also right-click that contextmenu entry to get even more options.
What if the path contains subfolders, then how can I use it closely as paren-path or parent ?
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Custumn column code for dupes with common path subsection

Post by NotNull »

anmac1789 wrote: Wed May 03, 2023 6:25 pm
NotNull wrote: Wed May 03, 2023 6:01 pm
"\Internal shared storage\Android\data\cn.wps.moffice_eng\.cache\KingsoftOffice\.history\*"


After that, you can right-click a resultlist header column and select "Find xxx duplicates".
Instead of selecting "Find xxx duplicates", you can also right-click that contextmenu entry to get even more options.
What if the path contains subfolders, then how can I use it closely as paren-path or parent ?
Remove the * at the end:
"\Internal shared storage\Android\data\cn.wps.moffice_eng\.cache\KingsoftOffice\.history\"



(although I'm not entirely sure what you exactly want)
anmac1789
Posts: 670
Joined: Mon Aug 24, 2020 1:16 pm

Re: Custumn column code for dupes with common path subsection

Post by anmac1789 »

NotNull wrote: Wed May 03, 2023 6:48 pm
anmac1789 wrote: Wed May 03, 2023 6:25 pm
NotNull wrote: Wed May 03, 2023 6:01 pm
"\Internal shared storage\Android\data\cn.wps.moffice_eng\.cache\KingsoftOffice\.history\*"


After that, you can right-click a resultlist header column and select "Find xxx duplicates".
Instead of selecting "Find xxx duplicates", you can also right-click that contextmenu entry to get even more options.
What if the path contains subfolders, then how can I use it closely as paren-path or parent ?
Remove the * at the end:
"\Internal shared storage\Android\data\cn.wps.moffice_eng\.cache\KingsoftOffice\.history\"



(although I'm not entirely sure what you exactly want)

The reason is because, there are dissimilar depth folders but that have the same names of subfolders, I did it on purpose this way because it allows me to backtrack to the origin of where the folders came from by using brackets
Post Reply