ItemCount + Folder Exclusion
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
ItemCount + Folder Exclusion
Is it impossible to hunt all folders with one (1) item but the respective path can't contain the "magazine" word (wildcard) anywhere?
Something like that: prop:#itemcount: 1 AND !(*\*magazine*\*)
Something like that: prop:#itemcount: 1 AND !(*\*magazine*\*)
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
Re: ItemCount + Folder Exclusion
Hello! Anybody home?
-
admin
- Site Admin
- Posts: 66631
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: ItemCount + Folder Exclusion
Your search term is wrong, but it would not work even if it would be right. Bugs...
... I'm working it out right now...
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66631
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: ItemCount + Folder Exclusion
Next beta you do this:
Or better in this sequence -- likely to run faster since only items with path != magazine are content-counted (Boolean AND-optimization):
This works the same:
Code: Select all
prop:#itemcount: 1 AND !path: magazineCode: Select all
path: != magazine AND prop:#itemcount: 1Code: Select all
path: !magazine AND prop:#itemcount: 1FAQ | XY News RSS | XY X
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
Re: ItemCount + Folder Exclusion
What a charming paradox!admin wrote:Your search term is wrong, but it would not work even if it would be right. Bugs...... I'm working it out right now...
Stunning! Awesome! Faster than my typing.admin wrote:Next beta you do this:
Or better in this sequence -- likely to run faster since only items with path != magazine are content-counted (Boolean AND-optimization)...
I like you more than Captain America! Thanks Don!
-
admin
- Site Admin
- Posts: 66631
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: ItemCount + Folder Exclusion
Just give me money, and it's okay.armsys wrote:I like you more than Captain America! Thanks Don!![]()
![]()
FAQ | XY News RSS | XY X
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
Re: ItemCount + Folder Exclusion
An innocuous typo is accidentally discovered:
Original
//all items with folder "saturn" anywhere in the path
Perhaps Don's intended meaning:
//all items with folder "saturn" NOT anywhere in the path
Original
//all items with folder "saturn" anywhere in the path
Perhaps Don's intended meaning:
//all items with folder "saturn" NOT anywhere in the path
To see the attached files, you need to log into the forum.
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
Re: ItemCount + Folder Exclusion
Thanks for adding a time-saving Find Files feature. 
-
admin
- Site Admin
- Posts: 66631
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: ItemCount + Folder Exclusion
Absolutely, I will fix it right now, thanks!armsys wrote: Perhaps Don's intended meaning:
//all items with folder "saturn" NOT anywhere in the path
FAQ | XY News RSS | XY X
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
Re: ItemCount + Folder Exclusion
The following Find Files line (pattern) works fine:
*.txt & path: != \\fitness\\ & path: != \\assorted\\ & path: != \\$RECYCLE.BIN\\
Question:
How to combine \\fitness\\, \\assorted\\ and \\$RECYCLE.BIN\\?
Something like: path: != (\\fitness\\ | \\assorted\\ | \\$RECYCLE.BIN\\)
*.txt & path: != \\fitness\\ & path: != \\assorted\\ & path: != \\$RECYCLE.BIN\\
Question:
How to combine \\fitness\\, \\assorted\\ and \\$RECYCLE.BIN\\?
Something like: path: != (\\fitness\\ | \\assorted\\ | \\$RECYCLE.BIN\\)
-
admin
- Site Admin
- Posts: 66631
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: ItemCount + Folder Exclusion
Code: Select all
!(path:mars OR saturn OR merkur)FAQ | XY News RSS | XY X
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
Re: ItemCount + Folder Exclusion
Yes, it works robustly as expected.
I didn't know the syntax is possible. Thanks Don.
Edit (2015.09.15 Tue 03:10:27 PM HKT)
Applying Don's above-mentioned optimization, I "optimize" the pattern as follows:
Thanks Don.
Code: Select all
*.txt & !(path:fitness OR assorted OR $RECYCLE.BIN)Edit (2015.09.15 Tue 03:10:27 PM HKT)
Applying Don's above-mentioned optimization, I "optimize" the pattern as follows:
Code: Select all
!(path:fitness OR assorted OR $RECYCLE.BIN) & *.txt
Last edited by armsys on 15 Sep 2015 09:11, edited 1 time in total.
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
Re: ItemCount + Folder Exclusion
Houston, I have a problem!
Why would XY interpret the following 2 patterns differently?
!(path:planet | css) & *.epub
*.epub & !(path:planet | css)
Always the former fails (no items found) but the latter succeeds. But why?
I do set FindAllowMasterInvert=0.
It seems the negation (!) effect is still distributed and propagated throughout the entire pattern!
XY version: v15.70.0119
Why would XY interpret the following 2 patterns differently?
!(path:planet | css) & *.epub
*.epub & !(path:planet | css)
Always the former fails (no items found) but the latter succeeds. But why?
I do set FindAllowMasterInvert=0.
It seems the negation (!) effect is still distributed and propagated throughout the entire pattern!
XY version: v15.70.0119
-
highend
- Posts: 14993
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: ItemCount + Folder Exclusion
One of my scripts helped you out? Please donate via Paypal
-
admin
- Site Admin
- Posts: 66631
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: ItemCount + Folder Exclusion
Tip: it's the "path:" prefix that is propagated...
FAQ | XY News RSS | XY X
XYplorer Beta Club