How i find the empty directories using tc?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
chunwaihome
Junior Member
Junior Member
Posts: 75
Joined: 2005-02-09, 04:38 UTC

How i find the empty directories using tc?

Post by *chunwaihome »

Hi,
How i find the empty directories using tc?By the way these directories's size is zero
thx
Last edited by chunwaihome on 2009-05-23, 01:02 UTC, edited 1 time in total.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Just use DirSizeCalc (content plugin) for this purpose.
#5767 Personal license
yeskky
Member
Member
Posts: 177
Joined: 2007-03-01, 05:32 UTC
Location: Jiang Su,China

Post by *yeskky »

Alt+Shift+Enter
Then sort by size.If a folder is empty then its size column shows <DIR>.
#222405 Single user licence
User avatar
ehab
Senior Member
Senior Member
Posts: 271
Joined: 2007-10-29, 07:41 UTC
Location: Libya

Post by *ehab »

yeskky, thanks never seen that before.
#181344 Personal licence
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Then sort by size.If a folder is empty then its size column shows <DIR>
<DIR> doesn't distinguish between empty folders, folders containing just subfolders without files and folders containing only 0 byte files.

http://lefteous.de/tc/docs/dirsizecalc/readme.htm#empty_directory_display
User avatar
chunwaihome
Junior Member
Junior Member
Posts: 75
Joined: 2005-02-09, 04:38 UTC

Post by *chunwaihome »

Good job :o
Really i have no update "dirsizecalc plugin" with a long time. The function "empty directory" is my need.


Actually Alt+Shift+Enter can't get my purpose. "What i think is that I Want to use plugin to colour the empty directory and del them"
Until now i find that this plugin little slow down my tc but which i can accept
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Until now i find that this plugin little slow down my tc but which i can accept
The field which find empty directories is way faster than TC's size enumeration as it just looks for contents and if found stops calculation. Loading the values automatically in a custom column will of course cause a minor slowdown. I recommend to use the search to find empty directories from time to time.
An alternative is to load the values on demand only. Starting with TC 7.5 there is a way to display field values for all or for all selected files/folders if they are configured as on demand. On demand configuration can be done with the bundled settings utility. The commands in TC are cm_LoadAllOnDemandFields and cm_LoadSelOnDemandFields.
Post Reply