Why is TC refreshing directory that hasn't changed?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Rekrul
Junior Member
Junior Member
Posts: 69
Joined: 2007-11-04, 21:40 UTC

Why is TC refreshing directory that hasn't changed?

Post by *Rekrul »

I have a directory on my C drive that has 4,412 files in it. I left that directory open in Total Commander 10.52 while I did some other stuff. I basically forgot about it for about an hour. When I brought TC to the front, it refreshed that directory, reading all the contents from scratch, despite the fact that absolutely nothing had changed. No files had been saved to that directory, none had been deleted or changed. It's a directory that I created to store stuff in, and nothing writes to it unless I copy files into it, or delete some files.

In TC's prefs, I have the first two options checked;

Refresh when files are created, deleted and renamed
Also when size, date, or attributes change


And the last two;

Update footer (total number of files)
Update header (free disk space)


It was my understanding that TC wouldn't re-read the directory if nothing had changed.

I suppose it's possible that the drive powered down/went to sleep, but that seems unlikely given that it's the C drive, and Windows can't seem to go 30 seconds without accessing the drive for some reason, let alone an hour. Plus, that directory still wouldn't have changed.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Why is TC refreshing directory that hasn't changed?

Post by *ghisler(Author) »

There is also a top section on the mentioned settings page "Refresh", labeled "Auto-Refresh when activating the program".
Unless you put a drive letter (or a backslash for all UNC paths like \\server\share) in the field "No refresh for these drives", TC will refresh the file list when you switch from another program to it.
Author of Total Commander
https://www.ghisler.com
Rekrul
Junior Member
Junior Member
Posts: 69
Joined: 2007-11-04, 21:40 UTC

Re: Why is TC refreshing directory that hasn't changed?

Post by *Rekrul »

ghisler(Author) wrote: 2023-04-07, 16:55 UTC There is also a top section on the mentioned settings page "Refresh", labeled "Auto-Refresh when activating the program".
Unless you put a drive letter (or a backslash for all UNC paths like \\server\share) in the field "No refresh for these drives", TC will refresh the file list when you switch from another program to it.
It doesn't do it every time though. If I go to that directory, switch to some other program for a couple minutes and then switch back, it doesn't re-read the directory. It only does it if I've left Total Commander in the background for a significant amount of time.
nice
Junior Member
Junior Member
Posts: 84
Joined: 2018-03-12, 23:58 UTC

Re: Why is TC refreshing directory that hasn't changed?

Post by *nice »

It does mean that if "Auto-Refresh when activating the program" is switched off, then it will never auto-refresh.
And, if it switched on, but "Refresh when files are created, deleted and renamed" (and so on) is unchecked, it will always auto-refresh.
Probably these options are not working as expected, and at all.
Fla$her wrote: 2023-03-28, 17:39 UTC 2nice
This also happens with the auto-update option disabled.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Why is TC refreshing directory that hasn't changed?

Post by *ghisler(Author) »

It doesn't do it every time though. If I go to that directory, switch to some other program for a couple minutes and then switch back, it doesn't re-read the directory.
It always re-reads the directory. However, it checks whether anything has changed, and if not, it doesn't refresh the displayed list of files.
Author of Total Commander
https://www.ghisler.com
nice
Junior Member
Junior Member
Posts: 84
Joined: 2018-03-12, 23:58 UTC

Re: Why is TC refreshing directory that hasn't changed?

Post by *nice »

sorry for my not-a-bug-not-a-report, but try to:
- turn off "Refresh when files are created, deleted and renamed" and "Also when size, date, or attributes change"
- select some file(s)
- switch to another app and modify any file
- return to TC
- TC WILL refresh directory, and selection WILL be lost
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Why is TC refreshing directory that hasn't changed?

Post by *petermad »

I noticed another problem.

Enabling or disabling "Also when size, date, or attribute change" does not take effect until AFTER TC has been restarted.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply