Calculate Occupied Space is wrong with compressed directories

Bug reports will be moved here when the described bug has been fixed

Moderators: petermad, Stefan2, Hacker

Post Reply
Sob
Power Member
Power Member
Posts: 949
Joined: 2005-01-19, 17:33 UTC

Calculate Occupied Space is wrong with compressed directories

Post by *Sob »

To reproduce:

1) create new directory
2) copy some files inside
3) compress the directory (right click -> Properties -> Advanced... -> Compress contents to save disk space -> Apply changes to this folder, subfolders and files)
4) Files -> Calculate Occupied Space... on directory shows Actual space used as 0 Bytes (*)
5) go into the directory, select all files and try again, the Actual space used is now non-zero
6) check Properties of directory and Size on disk in system dialog agrees with 5)

(*) It may be non-zero, but still way too low. I first encountered it on ~18GB directory where it claimed it was ~200MB. In reality it was ~5GB, but it was all text files with very similar repeating lines, so even though 200MB was suspicious, it didn't seem completely impossible. I even admired how good the compression was. :) Plus I trust TC so much that the possibility of it being wrong didn't came to mind.

Tested on Windows 10 and Server 2022. TC 11.57a RC1 with clean config. But it's not new, quick test with some older versions, that I have lying around, says that it broke somewhere between 11.03 and 11.56 (edit: found few more, last ok was 11.51).
User avatar
white
Power Member
Power Member
Posts: 6941
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Calculate Occupied Space is wrong with compressed directories

Post by *white »

Confirmed. It's actually introduced in TC 11.55 release candidate 3. But I don't see any relevant changes in the changelog:
HISOTRY.TXT wrote: 21.05.25 Release Total Commander 11.55 release candidate 3
21.05.25 Fixed: Multi-rename tool: Button [N#-#] did not support Unicode (32)
21.05.25 Added: Show overlay icon on the taskbar button also for disk full errors when copying (32/64)
20.05.25 Fixed: When using a copy filter with included directories (like *.pdf somedir\ ), do not copy directories outside of the provided directories (32/64)
19.05.25 Fixed: Unrar via tc7z dll: No error was reported when testing a damaged RAR archive (32/64)
19.05.25 Fixed: Unrar via tc7z dll: Show warning when opening a multi-volume archive and part is missing or can't be opened (32/64)
18.05.25 Fixed: cd command: Always remove double quotes when loading a template, e.g. cd ">savedsearch", or for chained commands, e.g. cd "*.txt",cm_SelectAll (32/64)
18.05.25 Added: When changing file attributes, it's now possible to enter fractions of a second (max 3 digits) in the time field (32/64)
17.05.25 Fixed: Creating blake3 checksum of a file smaller than 1MB after creating one for a file larger than 1MB created an invalid checksum (64)



Sob wrote: 2026-05-29, 03:13 UTC But it's not new, quick test with some older versions, that I have lying around, says that it broke somewhere between 11.03 and 11.56 (edit: found few more, last ok was 11.51).
As long as the installers are at the same location on Ghisler's server, you can download old versions directly from there using my tcdownload.cmd tool (for example, use: tcdownload /v:11.55rc3).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 53145
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Calculate Occupied Space is wrong with compressed directories

Post by *ghisler(Author) »

Confirmed. This should be fixed in Total Commander 11.58 RC1, please check!
(Note that the name has been changed because WinGet thinks that 11.57a is older than 11.57).
29.05.26 Fixed: Files - Calculate occupied space didn't include compressed files in "on source drive" (32/64)
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 6941
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Calculate Occupied Space is wrong with compressed directories

Post by *white »

Tested OK using TC 11.58rc1 32-bit and 64-bit.
Sob
Power Member
Power Member
Posts: 949
Joined: 2005-01-19, 17:33 UTC

Re: Calculate Occupied Space is wrong with compressed directories

Post by *Sob »

Fix confirmed. Thank you.
User avatar
white
Power Member
Power Member
Posts: 6941
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Calculate Occupied Space is wrong with compressed directories

Post by *white »

Moderator message from: white » 2026-05-29, 16:24 UTC

Moved topic
» from TC11.x bug reports (English) to TC Fixed bugs
Post Reply