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.
Why is TC refreshing directory that hasn't changed?
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Why is TC refreshing directory that hasn't changed?
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.
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
https://www.ghisler.com
Re: Why is TC refreshing directory that hasn't changed?
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.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.
Re: Why is TC refreshing directory that hasn't changed?
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.
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.
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Why is TC refreshing directory that hasn't changed?
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.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.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Why is TC refreshing directory that hasn't changed?
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
- 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
Re: Why is TC refreshing directory that hasn't changed?
I noticed another problem.
Enabling or disabling "Also when size, date, or attribute change" does not take effect until AFTER TC has been restarted.
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
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