syst date of root directory

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
trevor12
Junior Member
Junior Member
Posts: 65
Joined: 2012-12-06, 15:16 UTC
Location: Czech republic

syst date of root directory

Post by *trevor12 »

I have dir 0, inside subdir 1 and inside this subdirs files
when I change files or add new files to subdir 1, syst date of subdirs 1 is changed to a new date of change of files, but syst date of above root directory 0 is not changed (although its content was changed, not directly inside it but inside its subdirectory).

Is it intentionally behaviour of tcmd ? If so, is it possible anyhow to force for any changes inside root directory (also for situation that only it its subdirectory) the syst date of this root directory was also changed accordnigly to date and time of last change fles in its subdirectory ?

I am used sort root directories by date and when I do change of some subdirectory, I cannot see changed date of root directory (bad sorted by date)
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, trevor12.

As you are suggesting to change the behaviour of the Windows filesystems FAT32 and NTFS, you will have to file a change request with Microsoft.
Such changes are definitely outside the scope of what Total Commander can do.

Personal comment:
Implementing your logic would bring the fasted disks down to a crawl.
Why?
Imagine a subfoldertree just 10 levels deep. Not really rare such nesting levels.
Whenever any folder on the deepest level changes all the folder dates of the upper levels would have to be updated as well.
The result would be a massive slow down of the overall disk performance.
And the resulting folder timestamps on all levels would keep on changing all the time and be absolutely meaningless.
Just check how many folders and subfolders there are on your Windows system and how deeply folders are nested!


Cheers,
Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
trevor12
Junior Member
Junior Member
Posts: 65
Joined: 2012-12-06, 15:16 UTC
Location: Czech republic

re

Post by *trevor12 »

I use ntfs file system, it did not occur to me, so I must changed my system that is on sorting root directories by date.
Last problem: I recognize that when I change attributes of Directory 0 (and all subfolders ) on Read Only, it has no effect. I can add files to directory 0. Is it ok ?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

trevor12,
Windows itself (not TC!) updates folder modification time when a file or folder is added or deleted in it, and it doesn't update folder time when file or folder is modified (or its attributes are changed), that's why such changes are not recursive.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3897
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Last problem: I recognize that when I change attributes of Directory 0 (and all subfolders ) on Read Only, it has no effect. I can add files to directory 0. Is it ok ?
Yes.
This is the intentional behavior of your Windows system.
Try Windows Explorer and see the same.
#5767 Personal license
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

trevor12,
Read-only attribute has no effect for directories. However Windows uses system or read-only attribute when directory has active Desktop.ini file (e.g. for displaying special folder icon). You should set specific NTFS permissions (Security tab of dir properties) if you need to restrict directory modification.
trevor12
Junior Member
Junior Member
Posts: 65
Joined: 2012-12-06, 15:16 UTC
Location: Czech republic

re

Post by *trevor12 »

MVV - thanks, on ntfs by the Properties - Security I can set for owner and System suitable rights (Deny/Allow) with default checked ..inheritable.. so that such settings has effect like "Read Only dir and subdirs".
******
It is shame that MS windows 7 does not support "inheritable" (contrary - to higher level of directories structure- up to level 1 - root directory) changing of "date and time of modified" some files deep inside subdirectory structures below than right inside root directory ...
Post Reply