How to setup Color filter for empty directory TREE (=only empty folders) ?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
tobwen
Posts: 29
Joined: 08 Jan 2022 08:43

How to setup Color filter for empty directory TREE (=only empty folders) ?

Post by tobwen »

As I learned I can setup color filters for certain criteria.

One of the default color filters is to colorize a folder when its is currently empty.
Unfortunately if this folders contains one or more (nested) empty subfolder(s) it is not seen as empty.

Is there a way to specify a filter: "is empty or contains only (nested) empty folders"?

Tobias

admin
Site Admin
Posts: 60635
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: How to setup Color filter for empty directory TREE (=only empty folders) ?

Post by admin »

That's a useful idea! :tup: Coming with the next beta.

edw24
Posts: 2
Joined: 23 Feb 2024 19:59

Re: How to setup Color filter for empty directory TREE (=only empty folders) ?

Post by edw24 »

This is very close to my issue, I wonder if I'm allowed to ask here
I can't make the color filter for empty folders ignore the desktop.ini and the .ico file inside the folder (they are hidden with a system attr)

highend
Posts: 13339
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to setup Color filter for empty directory TREE (=only empty folders) ?

Post by highend »

Code: Select all

B:prop:#contains.desktop.ini:1 AND B:prop:#contains.*.ico:1 AND B:prop:#itemcount:2;B:prop:#empty:2
?
One of my scripts helped you out? Please donate via Paypal

edw24
Posts: 2
Joined: 23 Feb 2024 19:59

Re: How to setup Color filter for empty directory TREE (=only empty folders) ?

Post by edw24 »

highend wrote: 23 Feb 2024 20:17

Code: Select all

B:prop:#contains.desktop.ini:1 AND B:prop:#contains.*.ico:1 AND B:prop:#itemcount:2;B:prop:#empty:2
?
Thank you very much :3

tobwen
Posts: 29
Joined: 08 Jan 2022 08:43

Re: How to setup Color filter for empty directory TREE (=only empty folders) ?

Post by tobwen »

The question from ewd24 is useful and the answer seems to work.
However the solution looks (too) complicated.
Why not introduce a new property "visiblyempty" which sees a folder as empty if it contain NO visible files at all?

Code: Select all

B:prop:#visiblyempty:2
would be much shorter, more understandable and covers all other hidden stuff.

highend
Posts: 13339
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to setup Color filter for empty directory TREE (=only empty folders) ?

Post by highend »

And if someone doesn't want to hide the belonging .ico file in the folder (because he wants to see them), that filter wouldn't work...
One of my scripts helped you out? Please donate via Paypal

tobwen
Posts: 29
Joined: 08 Jan 2022 08:43

Re: How to setup Color filter for empty directory TREE (=only empty folders) ?

Post by tobwen »

@highend:

Well in this case the user can revert to the detailed criteria specification you showed before.

In all other cases (approx. 95%) the new property is shorter and will be more user friendly

tobwen
Posts: 29
Joined: 08 Jan 2022 08:43

Re: How to setup Color filter for empty directory TREE (=only empty folders) ?

Post by tobwen »

admin wrote: 14 Feb 2024 18:21 That's a useful idea! :tup: Coming with the next beta.
I guess this idea is meanwhile implemented.

How do I specify it in detail in color filters?

Post Reply