dupe: - compare properties between files AND folders

Discussion related to "Everything" 1.5 Alpha.
Post Reply
wrisco
Posts: 15
Joined: Wed Jan 19, 2022 6:43 pm

dupe: - compare properties between files AND folders

Post by wrisco »

My use case:

I have a lot of compressed files on "Drive A" and have them uncompressed on "Drive B".
I want to check if all the files on "Drive A" exist (uncompressed) on "Drive B".

Code: Select all

A:\Path\To\Archive.zip

B:\Path\To\Archive.zip\File001
B:\Path\To\Archive.zip\File002
B:\Path\To\Archive.zip\File003
Using the regular-expression-match-1 property and excluding everything inside the uncompressed folders...

Code: Select all

\Path\To\Archive.zip

\Path\To\Archive.zip
However, a !dupe:regular-expression-match-1 search doesn't seem to compare properties between files and directories.
Seeing how the "Mix Files and Folders" sorting option is limited to only indexed properties, I suppose this isn't practical?
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: dupe: - compare properties between files AND folders

Post by void »

Everything 1.5.0.1332a adds support for multiple properties with !dupe: and unique:

With this version, please try the following search:

!dupe:regmatch1;isfolder

This will list files/folders where regmatch1 AND isfolder are unique.

"Is Folder" will be "yes" for folders and "no" for files.
wrisco
Posts: 15
Joined: Wed Jan 19, 2022 6:43 pm

Re: dupe: - compare properties between files AND folders

Post by wrisco »

It works! Thank you!!
wrisco
Posts: 15
Joined: Wed Jan 19, 2022 6:43 pm

Re: dupe: - compare properties between files AND folders

Post by wrisco »

I made a mistake in my search :? It's not working.

The problem is that !dupe: or unique: don't work for a regular-expression-match where both a folder and a file have the same value.
Instead, it shows the file and the folder which both have the same regular-expression-match value.

image.png
image.png (4.48 KiB) Viewed 3615 times
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: dupe: - compare properties between files AND folders

Post by void »

The problem is that !dupe: or unique: don't work for a regular-expression-match where both a folder and a file have the same value.
Instead, it shows the file and the folder which both have the same regular-expression-match value.
This is a limitation with Everything.

Everything uses separate databases for files and folders.

dupe: is only applied to a single database at a time.



I will consider support for mixing files and folders with regmatch1.
Thank you for the suggestion.

For now, please consider exporting the regex:(test)\.txt search to an EFU file list, changing the folders to files, opening the file list and searching for dupe:
  • In Everything, perform your regex: search, for example:
    regex:(test)\.txt
  • From the File menu, click Export....
  • Change save as type to: EFU Everything File List.
  • Choose a filename and click Save.
  • Open this file list in Notepad
  • Change the header from:
    Filename,Size,Date Modified,Date Created,Attributes
    to:
    Filename,Size,Date Modified,Date Created
  • Save changes and exit Notepad.
    ---
  • From the File menu, click Open File List...
  • Select the file list you saved above and click Open...
  • Perform your regex: and dupe: search, for example:
    regex:(test)\.txt !dupe:regmatch1
    ---
  • When you are done with your results, close the file list:
  • From the File menu, click Close File List.
wrisco
Posts: 15
Joined: Wed Jan 19, 2022 6:43 pm

Re: dupe: - compare properties between files AND folders

Post by wrisco »

Many thanks for the workaround! The extra steps are no problem at all since I won't have to perform this search often.
Post Reply