sizedupe: may have preference over dupe: ?

Found a bug in "Everything"? report it here
Post Reply
therube
Posts: 5056
Joined: Thu Sep 03, 2009 6:48 pm

sizedupe: may have preference over dupe: ?

Post by therube »

sizedupe: may have preference over dupe:, so when combined may return unexpected results ?

(Heh, I just used the new Copy Name feature :-).)

Two ISO's, the same size:

Code: Select all

XPPRO_SP3.lite123-s4.iso
XPPRO_SP3.lite123-nlite.iso
Search:

> lite123 dupe:

Correctly does not find any dupe as the names differ.

Search

> lite123 dupe: sizedupe:

Shows *1* file, XPPRO_SP3.lite123-nlite.iso, as the case is.
I would expect sizedupe: to match, but when combined with dupe: it should not.
(And since something is returned, you would think it would return at least two files?)

(Or maybe it has something to do with the dash [-] & "double extension" [if you will]?)

(Not a big deal, but...)
void
Developer
Posts: 17155
Joined: Fri Oct 16, 2009 11:31 pm

Re: sizedupe: may have preference over dupe: ?

Post by void »

This is a limitation with dupe:/sizedupe:

Everything looks for the duplication in all files and folders (not the current results).

So XPPRO_SP3.lite123-nlite.iso would have a duplicated name in the entire index and a duplicated size in the entire index.

The main reason dupe:/sizedupe: works this way is for performance concerns.
I may change this to find duplications in the results if it can be done efficiently. I would prefer it find dupes in the results too.

sizedupe: works best when used with an extension only, eg:

Code: Select all

sizedupe: *.iso
Please keep in mind that sizedupe: does not check file contents, only file sizes.
If you are deleting duplicates, please use sizedupe: as a guide only, please make sure the file contents are really duplicated.
Post Reply