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...
tobwen
Posts: 40
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: 63523
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 14190
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: 40
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: 14190
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: 40
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: 40
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?

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

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

Post by tobwen »

Is this implemented too in the next release?

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

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

Post by admin »

What do you mean?

tobwen
Posts: 40
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.
On 14th of Februar you promised an implementation

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

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

Post by admin »

What makes you think I would not keep my promises? And in this case, it was not a promise, it was an announcement. And what keeps you from just looking at the release notes or the help file?

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

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

Post by tobwen »

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
?
This works only for folders which must contain one desktop.ini AND one .ico

Is there a way to extend this code so that folders are seen as empty if they contain really no file or eventually contain one *.ico and/or contain eventually a desktop.ini file or not?

pstein
Posts: 66
Joined: 11 Dec 2021 21:11

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

Post by pstein »

admin wrote: 10 Jul 2024 09:44 What makes you think I would not keep my promises? And in this case, it was not a promise, it was an announcement. And what keeps you from just looking at the release notes or the help file?
I revisit now this thread. I am unsure about the meaning of your statement.

Does that mean it is already implemented?
I reviewed the latest release notes and searched help file about "nested empty folders" - No matching.

Maybe you can give me a little help as a stupid user. If the mentioned announcement has not yet been implemented: When did the implementation take place?

Post Reply