dupe:size;!name returns unexpected results

Discussion related to "Everything" 1.5 Alpha.
Post Reply
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

dupe:size;!name returns unexpected results

Post by therube »

dupe:size;!name !/$recycle !/music !/corrupt

& with that, i'm finding /some/ files that are
dupe size AND name

where i'm not expecting to see those particular files
cause they fail the dupe:!name part of the search ?


(don't know if this is 1375 exclusive)


thinking it is going to be when the returned number hits for a size Groups > 2

if you have a group of

Code: Select all

name:	size:
1	18 bytes
2	18 bytes
you only have only 2 hits of 18 bytes

if you have a group of

Code: Select all

a	36 bytes
b	36 bytes
c	36 bytes
d	36 bytes
e	36 bytes
you have > 2 hits in that group & what is returned will be something like

Code: Select all

a	36 bytes
b	36 bytes
b	36 bytes
c	36 bytes
c	36 bytes
d	36 bytes
e	36 bytes
where files b & c are shown - but should not be
while the size is dupe'd, the name is also dupe'd
but the dupe;!name part says to not list those

it looks like the "first" & "last" files in the
grouping are listed singularly, but all the other
files are listed 2x...

but, what is actually happening is (& similar to
the the Length & Coloring thread) that when there
is > 2 files meeting the primary criteria (size),
it is then iterating against itself causing
(incorrect) results to be returned,
when in fact (perhaps) none at all should be
returned

< above description is not quite right, i now see
below is better >


size:10518424

Code: Select all

1507_60_hi.mpg
1507_60_hi.mpg
1507_61_hi.mpg
1507_61_hi.mpg
1507_86_hi.mpg
1507_86_hi.mpg
dupe: size:10518424

Code: Select all

1507_60_hi.mpg
1507_60_hi.mpg
--- (group marker)
1507_61_hi.mpg
1507_61_hi.mpg
--- (group marker)
1507_86_hi.mpg
1507_86_hi.mpg
dupe:size:10518424 <--- this does not work (correctly, or at least not in the way i was thinking it would work)



dupe:size:10518424;!name <--- this does not work (correctly, or at least not in the way i was thinking it would work)


(so now we're back to)
dupe:size;!name !/$recycle !/music !/corrupt
or more simply

dupe:size;!name

Code: Select all

1507_60_hi.mpg
1507_61_hi.mpg
1507_61_hi.mpg
1507_86_hi.mpg
where in fact no "1507" files should be found
as while all are dupe:size, none are dupe:!name


& for added fun

dupe: size:10518424 dupe:!name

Code: Select all

1507_60_hi.mpg
--- (group marker)
1507_61_hi.mpg
1507_61_hi.mpg
--- (group marker)
1507_86_hi.mpg

OK, so with dupe:size;name
size & name are "catagories" (not the correct term)
& not "verbs" (probably not the correct term again ;-))
so in that context while
size:999 is a correct "verb"
size: (with a colon) is not a "category", so cannot work in that manner with dupe:
dupe:size:999
OK


but
dupe:size;!name
is correct, as size & name are "categories"
& can be used in that way with dupe:
only there is recursion going on
& incorrect results are occurring, no?
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: dupe:size;!name returns unexpected results

Post by void »

Please avoid ! in dupe:

The ! inside dupe: means invert (NOT) the dupe operation.

You may end up with duplicated size and names in your results:


a 36 bytes
b 36 bytes

b 36 bytes
c 36 bytes

c 36 bytes
d 36 bytes
e 36 bytes


b and c are shown twice because a + b is a duplicated pair, b + c is a duplicated pair and c + d is a duplicated pair.



Everything will stop grouping when it hits the ! in your dupe command.
Only size will be grouped in your case.



Please try the following search instead:

distinct:size;name dupe:size
Post Reply