Size in header isn't changed when in Ctrl+B mode

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Sektor
Member
Member
Posts: 157
Joined: 2007-04-04, 10:11 UTC
Location: Russia

Size in header isn't changed when in Ctrl+B mode

Post by *Sektor »

In Ctrl+B mode (Show all files in current dir and all subdirs), when I delete files, the size in header (free disk space) isn't updated. When I switch back to normal view, the size gets updated.
License #299429
There is no knowledge that is not power
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Size in header isn't changed when in Ctrl+B mode

Post by *ghisler(Author) »

I will check it - my disks are so large that I didn't notice so far. Will have to try on a USB stick.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Size in header isn't changed when in Ctrl+B mode

Post by *petermad »

I have tried it with SizeFooter=0 to sahw bytes in the size header. It seems that you have to delete more than just a few bytes (more than 1k) before Windows reports a change in size.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Re: Size in header isn't changed when in Ctrl+B mode

Post by *HolgerK »

Maybe because NTFS can store small files completely inside the Master File table.
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc781134(v=ws.10)?redirectedfrom=MSDN wrote:Small files and folders (typically, 900 bytes or smaller) are entirely contained within the file’s MFT record.
Regards
Holger
Make our planet great again
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Size in header isn't changed when in Ctrl+B mode

Post by *ghisler(Author) »

Interesting, that's really a possibility. I tried with big files, and the header was immediately updated also in Ctrl+B mode.
Author of Total Commander
https://www.ghisler.com
Sektor
Member
Member
Posts: 157
Joined: 2007-04-04, 10:11 UTC
Location: Russia

Re: Size in header isn't changed when in Ctrl+B mode

Post by *Sektor »

@ghisler
Alas, for me the header isn't updated (I have "Update header (free disk space)" checked, of course). As soon as I quit Ctrl+B mode, the header is immediately updated. I will try to make video with this behavior.
License #299429
There is no knowledge that is not power
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Size in header isn't changed when in Ctrl+B mode

Post by *ghisler(Author) »

Yes, please do.
Author of Total Commander
https://www.ghisler.com
Sektor
Member
Member
Posts: 157
Joined: 2007-04-04, 10:11 UTC
Location: Russia

Re: Size in header isn't changed when in Ctrl+B mode

Post by *Sektor »

@ghisler
Beg your pardon... Everything is OK! The thing is that files were moved to Recycle Bin - that's the reason the size wasn't updated!
License #299429
There is no knowledge that is not power
Post Reply