Wishlist: set folder timestamp (like archive) to newest file
Moderators: Hacker, petermad, Stefan2, white
Wishlist: set folder timestamp (like archive) to newest file
Perhaps folder dates would be more informative if their timestamps, like that of zip files (optionally), would match the date/time of the newest file (or subfolder) in the folder. For example, if I copy a folder, I'd rather it kept its original date, not today's.
I know that TC could not change how this is done systemwide, but what about an option for TC to automatically reset the timestamp of any folder which it modifies (by copying or deleting files)?
Or at least a new command "set timestamp of selected folders to match newest contained file/folder".
Comments?
I know that TC could not change how this is done systemwide, but what about an option for TC to automatically reset the timestamp of any folder which it modifies (by copying or deleting files)?
Or at least a new command "set timestamp of selected folders to match newest contained file/folder".
Comments?
Re: Wishlist: set folder timestamp (like archive) to newest
Yes, I like the suggested command ("touch de luxe")!jdmarch wrote:Perhaps folder dates would be more informative if their timestamps, like that of zip files (optionally), would match the date/time of the newest file (or subfolder) in the folder. For example, if I copy a folder, I'd rather it kept its original date, not today's.
I know that TC could not change how this is done systemwide, but what about an option for TC to automatically reset the timestamp of any folder which it modifies (by copying or deleting files)?
Or at least a new command "set timestamp of selected folders to match newest contained file/folder".
Comments?

The command may be named cm_SetDirDateToNewestFile and also be integrated into command cm_SetAttrib ("Files|Change Attributes..."). I mean the dialog of cm_SetAttrib could be extended by the option "Set directory date to newest file date". So you can see all features regarding attributes in one place. Probably more such features will come. On the other hand cm_SetDirDateToNewestFile seems important enough to be a command of its own (to be callable directly, not via cm_SetAttrib).
[face=courier]On 15-11-2003 02:14:48 +0000 jdmarch wrote:
Well, as oblomov mentioned NTFS has this functionality by default. So if you want it now you can just convert your partitions to NTFS (shell CONVERT command).
j> For example, if I copy a folder, I'd rather it kept its
j> original date, not today's.
Folder time stamps preserving on coping is a separate function and it's already supported in v. 6.0.
j> Or at least a new command "set timestamp of selected
j> folders to match newest contained file/folder".
I'd rather prefer INI parameter "SetDirDateToNewestFile=" with "0" value overriding NTFS default behavior on NTFS partitions.[/face]
Well, as oblomov mentioned NTFS has this functionality by default. So if you want it now you can just convert your partitions to NTFS (shell CONVERT command).
j> For example, if I copy a folder, I'd rather it kept its
j> original date, not today's.
Folder time stamps preserving on coping is a separate function and it's already supported in v. 6.0.
j> Or at least a new command "set timestamp of selected
j> folders to match newest contained file/folder".
I'd rather prefer INI parameter "SetDirDateToNewestFile=" with "0" value overriding NTFS default behavior on NTFS partitions.[/face]
[face=courier]The Protoss do NOT run from their enemies.
It is here, that we shall make our stand.[/face]
It is here, that we shall make our stand.[/face]
2oblomov
The option and command which I am suggesting would not be file-system-specific. They would do the same operation on any OS, which is something which neither OS does, and they would do it not by hacking the file system, but by touching the folder after the file system operation was complete.
2ib
I agree with including the feature in the Attributes dialog as well as in its own command.
2black dog
NTFS has been my main file system for 7 years. No, it does not have this proposed functionality. What it does, which is very different than my proposal, is to touch the folder timestamp to the current time, whenever a change is made to the contents of the folder. The only time that this results in a timestamp matching the newest file in the folder is when a file in the folder is created or edited (etc).
Specifically, these timestamps do not match after a folder is copied, after a file is copied into a folder, or renamed in a folder, or deleted from a folder. With the command and option which I propose, the folder timestamp would match the newest sub timestamp after each of these operations (in the case of the proposed option), or after the invocation of the proposed command.
Thanks for mentioning that TC 6 preserves folder timestamps during folder copy. That's a step in the right direction.
The option and command which I am suggesting would not be file-system-specific. They would do the same operation on any OS, which is something which neither OS does, and they would do it not by hacking the file system, but by touching the folder after the file system operation was complete.
2ib
I agree with including the feature in the Attributes dialog as well as in its own command.
2black dog
NTFS has been my main file system for 7 years. No, it does not have this proposed functionality. What it does, which is very different than my proposal, is to touch the folder timestamp to the current time, whenever a change is made to the contents of the folder. The only time that this results in a timestamp matching the newest file in the folder is when a file in the folder is created or edited (etc).
Specifically, these timestamps do not match after a folder is copied, after a file is copied into a folder, or renamed in a folder, or deleted from a folder. With the command and option which I propose, the folder timestamp would match the newest sub timestamp after each of these operations (in the case of the proposed option), or after the invocation of the proposed command.
Thanks for mentioning that TC 6 preserves folder timestamps during folder copy. That's a step in the right direction.
[face=courier]On 15-11-2003 22:34:27 +0000 jdmarch wrote:
j> The only time that this results in a timestamp matching the
j> newest file in the folder is when a file in the folder is
j> created or edited (etc).
Yep, agree with you, I thought about a bit different situation while answering. Though I do not need such a functionality desperately, it's a good idea in general. So you want it as default Commander behavior or just in a few cases? Because in the former situation my suggestion with INI parameter IMHO should be more functional.
j> Thanks for mentioning that TC 6 preserves folder timestamps
j> during folder copy. That's a step in the right direction.
Actually it was one of my most long-awaited features :). BTW, it's disabled be default.[/face]
j> The only time that this results in a timestamp matching the
j> newest file in the folder is when a file in the folder is
j> created or edited (etc).
Yep, agree with you, I thought about a bit different situation while answering. Though I do not need such a functionality desperately, it's a good idea in general. So you want it as default Commander behavior or just in a few cases? Because in the former situation my suggestion with INI parameter IMHO should be more functional.
j> Thanks for mentioning that TC 6 preserves folder timestamps
j> during folder copy. That's a step in the right direction.
Actually it was one of my most long-awaited features :). BTW, it's disabled be default.[/face]
[face=courier]The Protoss do NOT run from their enemies.
It is here, that we shall make our stand.[/face]
It is here, that we shall make our stand.[/face]
it doesnt actually workBlack Dog wrote:[face=courier]On 15-11-2003 22:34:27 +0000 jdmarch wrote:
j> Thanks for mentioning that TC 6 preserves folder timestamps
j> during folder copy. That's a step in the right direction.
Actually it was one of my most long-awaited features :). BTW, it's disabled be default.[/face]
though it copies the date/time it WILL be updated to current time as soon as you enter the directory, you dont even have to make any change inside that directory, simple viewing is enough.
and i had my hopes :)
Grave
*eat people, not animals*
*eat people, not animals*
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I cannot reproduce this. Windows 2000/XP changes the folder date/time only when something is changed within the folder. So my guess is that you use some kind of background virus scanner which changes the last accessed times of some files, which updates the folder date too.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com