How to add a color to an empty direrectory

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
masterninja2
Junior Member
Junior Member
Posts: 22
Joined: 2020-10-03, 09:42 UTC
Location: Europe

How to add a color to an empty direrectory

Post by *masterninja2 »

I'm not skilled with defining diff colors to diff kind of files, so pls help me

I have found out how to define a color to diff files allright
Now I have also managed to color the directories in an special color, but a would like the empty ones to have a special color and the not empty ones with another color.
How to that ?

brgds Masterninja2
Brgds Masterninja2
Win11 build 26010, TotalCommander 11.02
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: How to add a color to an empty direrectory

Post by *Horst.Epp »

One of many possible ways.
Set the Directory Attribute under Advanced
In the Plugins tab add the tc plugin
and set the Size Property Value to = 0 Bytes.

For non-empty dirs set the Size Property Value to > 0 Bytes
But i would not make colors for all non-empty dirs, thats a least for me useless.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
masterninja2
Junior Member
Junior Member
Posts: 22
Joined: 2020-10-03, 09:42 UTC
Location: Europe

Re: How to add a color to an empty direrectory

Post by *masterninja2 »

Seems not to work

brgds
Masterninja2
Brgds Masterninja2
Win11 build 26010, TotalCommander 11.02
User avatar
LonerD
Senior Member
Senior Member
Posts: 381
Joined: 2010-06-19, 20:18 UTC
Location: Makeyevka, Russia
Contact:

Re: How to add a color to an empty direrectory

Post by *LonerD »

Horst.Epp wrote: 2023-05-27, 17:35 UTC and set the Size Property Value to = 0 Bytes.
Non-empty directories can contain another directories or 0 bytes files.

The best solution - emptycheck plugin
"I used to feel guilty in Cambridge that I spent all day playing games, while I was supposed to be doing mathematics. Then, when I discovered surreal numbers, I realized that playing games IS math." John Horton Conway
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: How to add a color to an empty direrectory

Post by *Horst.Epp »

2LonerD
Thats true but the poster has to be carefull if there are very deep trees to check
as this may delay the coloring on every dir change.
There is another plugin (EmptyWDX) which allows to set the recurse level for the check.

Pesrsonaly I no longer use any coloring for empty dirs
as the Everything integration shows a size which is enough for me.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: How to add a color to an empty direrectory

Post by *Fla$her »

Horst.Epp wrote: 2023-05-28, 07:55 UTC but the poster has to be carefull if there are very deep trees to check
And why should the plugins authors check some depth, if the first level is enough?
Once again: a poster is a placard/banner/billboard, not the post's author (especially a starting one).
Horst.Epp wrote: 2023-05-28, 07:55 UTC Pesrsonaly I no longer use any coloring for empty dirs
as the Everything integration shows a size which is enough for me.
Everything is unreliable in terms of special settings with volume exceptions (for example, flash drives or slow drives).
And, of course, the size of the folder cannot be compared with the presence of something in it. These are different entities.
It would be possible to use ed:empty: if the current directory was taken into account, but even in this case there would be problems with short folder names.
Last edited by Fla$her on 2023-05-28, 11:16 UTC, edited 1 time in total.
Overquoting is evil! 👎
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: How to add a color to an empty direrectory

Post by *Hacker »

Fla$her,
a poster is a placard/banner/billboard, not the post's author (especially a starting one)
https://dictionary.cambridge.org/dictionary/english/poster

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: How to add a color to an empty direrectory

Post by *Fla$her »

2Hacker
Cambridge. Curious. Will keep in mind. )
Overquoting is evil! 👎
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: How to add a color to an empty direrectory

Post by *Hacker »

Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
mrle
Junior Member
Junior Member
Posts: 58
Joined: 2005-04-25, 21:44 UTC

Re: How to add a color to an empty direrectory

Post by *mrle »

DirSizeCalc.wdx - https://totalcmd.net/plugring/dirsizecalc.html

wincmd.ini:

Code: Select all

[Colors]
ColorFilter1=>DirEmpty
ColorFilter1Color=11434329
[Searches]
DirEmpty_SearchFlags=0|002002000020|||||||||0000|
DirEmpty_plugin=dirsizecalc.Empty = Yes
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: How to add a color to an empty direrectory

Post by *Fla$her »

2mrle
The above suggested emptycheck is faster.
Overquoting is evil! 👎
Post Reply