-CopyDirTimeStamp is ignored for the parent folder

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
AndrewCreator
Member
Member
Posts: 122
Joined: 2011-10-10, 23:25 UTC

-CopyDirTimeStamp is ignored for the parent folder

Post by *AndrewCreator »

Total Commander 8.50.

CopyDirTimeStamp is ignored for the parent folder if copying as administrator.

Let A to be a folder where only administrator has access. Let B and C to be subfolders of A. Let D to be subfolder of C.

Steps to reproduce:
  1. Run TC as restricted user.
  2. Enter A as administrator.
  3. Copy B and C.
  4. Ensure that target B and C timestamps are not the same as source, but target D timestamp is the same as source.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will check it, thanks.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately I have to deny this request: The function to set folder timestamps isn't currently supported by tcmadmin.exe, and it would be too much work to add it, sorry.
Author of Total Commander
https://www.ghisler.com
AndrewCreator
Member
Member
Posts: 122
Joined: 2011-10-10, 23:25 UTC

Post by *AndrewCreator »

2ghisler(Author), I wonder why subfolders are copied with the correct timestamps.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This can happen when the user under which TC is running has the right to access the folder. Currently the function to get/set the folder timestamp isn't impmemented in the tcmadmin tool.
Author of Total Commander
https://www.ghisler.com
AndrewCreator
Member
Member
Posts: 122
Joined: 2011-10-10, 23:25 UTC

Post by *AndrewCreator »

You're right. Subfolders' timestamps are retained if user has access to destination folder.

Are you sure you will not add get/set folder timestamp to the tcadmin tool? May be this can be moved to a suggestion forum?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Maybe in a later version, but it will need a lot of changes to the main copy function. Since this is more or less the core of TC, I don't want to change it in a minor release - the risks are just too high.
Author of Total Commander
https://www.ghisler.com
Post Reply