I want to set a color filter for empty folders. I thought "size d:0" (no quotes) would work, but it doesn't. I've tried everything else I can think of. Is this possible?
In the course of this I tried to set Boolean conditions on a filter. Is there a direct way to do an 'AND"? For example, if an object is a folder and is empty? A couple of examples would be great.
Thanks for any help.
Color Filter - empty folders, and AND
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Color Filter - empty folders, and AND
Code: Select all
prop:#empty:2Look here for boolean CF examples:
Code: Select all
::help "idh_colorfilters.htm#idh_cfbooleanlogic";Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
highend
- Posts: 14996
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Color Filter - empty folders, and AND
Another way:
size:0 for a color definition would work as well or better: attr:d and size:0 if you want to distinguish empty folders from empty files.
"Always show folder sizes" must be active to get this working, though.
There are a lot of examples in the help file for "Color filters" btw
size:0 for a color definition would work as well or better: attr:d and size:0 if you want to distinguish empty folders from empty files.
"Always show folder sizes" must be active to get this working, though.
There are a lot of examples in the help file for "Color filters" btw
One of my scripts helped you out? Please donate via Paypal
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Color Filter - empty folders, and AND
Also, keep in mind that there is difference between "empty" and "size is 0":
If you were to reverse the order in the filter list then highend's suggestion would override Sammay's:
To see the attached files, you need to log into the forum.
-
Papoulka
- Posts: 455
- Joined: 13 Jul 2013 23:41
Re: Color Filter - empty folders, and AND
Thanks for all the assistance. Sammay has it: I need to specify an "empty" folder, not size zero. I didn't understand the distinction re folders, which also led me to think I misunderstood the Boolean forms.
My first attempt was in fact "attr:d and size:0", and I did read the Help which is how I came to the equivalent but more concise "size d:0". But again, the key is to use the empty property.
My first attempt was in fact "attr:d and size:0", and I did read the Help which is how I came to the equivalent but more concise "size d:0". But again, the key is to use the empty property.
XYplorer Beta Club