Page 1 of 1
Color Filter - empty folders, and AND
Posted: 30 Aug 2016 02:46
by Papoulka
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.
Re: Color Filter - empty folders, and AND
Posted: 30 Aug 2016 07:29
by bdeshi
custom property #empty returns 2 for empty folders, so this removes any need for boolean here.
Look here for boolean CF examples:
Code: Select all
::help "idh_colorfilters.htm#idh_cfbooleanlogic";
Re: Color Filter - empty folders, and AND
Posted: 30 Aug 2016 07:45
by highend
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

Re: Color Filter - empty folders, and AND
Posted: 30 Aug 2016 13:19
by TheQwerty
Also, keep in mind that there is difference between "empty" and "size is 0":
2016-08-30 071303.png
If you were to reverse the order in the filter list then highend's suggestion would override Sammay's:
2016-08-30 071711.png
Re: Color Filter - empty folders, and AND
Posted: 30 Aug 2016 20:18
by Papoulka
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.