Having symbolic link in subfolder breaks dir size calcula...

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
3ICE
Junior Member
Junior Member
Posts: 22
Joined: 2013-04-09, 09:00 UTC
Location: Hungary
Contact:

Having symbolic link in subfolder breaks dir size calcula...

Post by *3ICE »

Hi,

This is the curent situation of my Java folder: I used a symbolic link to redirect old version of java to current version. To keep my apps from complaining that I uninstalled Java u15 in favor of u17:

Code: Select all

C:\Program Files\Java> mklink /D jdk1.7.0_15 jdk1.7.0_17
symbolic link created for jdk1.7.0_15 <<===>> jdk1.7.0_17
This looks good in Total Commander:
Image: http://static.3ice.hu/images/TotalCommander-bugreport1-symlink.png

But the Java directory size is then reported incorrectly (600MB):
Image: http://static.3ice.hu/images/TotalCommander-bugreport1-wrong_size.png

Actual size (300MB):
Image: http://static.3ice.hu/images/TotalCommander-bugreport1-actual_size.png

Please advise...

Thanks,
Daniel "3ICE" Berezvai

p.s.: Tried adding the _15 folder to tcignore.txt as a workaround, but it didn't work. Also, I'd rather not do that for all my symlinks.
3ICE
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

TC calculates full size of folder with all its subfolders/links. It was made so because it shows the size that you'll reguire on target drive if you copy that folder to it.
User avatar
3ICE
Junior Member
Junior Member
Posts: 22
Joined: 2013-04-09, 09:00 UTC
Location: Hungary
Contact:

Post by *3ICE »

That is all well and good, but how can I fix it for the above/below scenario?
A symlink to a subfolder is only going to be a couple bytes of overhead if I copy the parent folder to a different target drive. With or without the symlink.
3ICE
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Currently you can't disable calculation of link contents in TC, sorry. If you want TC to ignore jdk1.7.0_15 folder you can try to add it to ignore list.
User avatar
3ICE
Junior Member
Junior Member
Posts: 22
Joined: 2013-04-09, 09:00 UTC
Location: Hungary
Contact:

Re: Having symbolic link in subfolder breaks dir size calcul

Post by *3ICE »

3ICE wrote:Tried adding the _15 folder to tcignore.txt as a workaround, but it didn't work. Also, I'd rather not do that for all my symlinks.
3ICE
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You're right, ignore list doesn't help here.
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

The content plugin DirSizeCalc features excluding all kind of links (using the included settings tool).

http://lefteous.totalcmd.net/tc/dirsizecalc_eng.htm
Post Reply