Folders "Read-Only" not updated

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
i_like_total_commander
Junior Member
Junior Member
Posts: 3
Joined: 2010-08-08, 07:54 UTC

Folders "Read-Only" not updated

Post by *i_like_total_commander »

Altough the option "Copy date/time of directories" is selected/activated (on), when you copy or synchronize a "read-only" folder, its date/time is not updated with original, leaving the current (date/time of action).

All the date/time attributes are copied to folders, except for those with "read-only" attribute activated.

The read-only attribute doesn't allow the modification with the original date/time.

This option "Copy date/time of directories" is very useful, but it would be appropriate to correct this bug when copy and synchronize.

Thank you very much in advance.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

I don't see any bug there. It does what it should do !

You set the "read-only" attribute to tell that it shall not be modified ... well and it is not modified.
#5767 Personal license
i_like_total_commander
Junior Member
Junior Member
Posts: 3
Joined: 2010-08-08, 07:54 UTC

Post by *i_like_total_commander »

It's very simple: the copied folder (destination) must have the same attributes (ro/date/time) that the original folder (source), even when read-only.

The read-only is only that: read only. But, it doesn't mean that the destination will have different attributes than the original (file or folder).

For example: when copying a read-only file, its date/time is the same than original's.

So, it must be equal for read-only folders too, like NTFS permissions are copied even read-only.

The date/time of destination folder must be the same date/time than original, like in copied files.

source file (ro/date/time) ---> copied file (ro/date/time)
source folder (ro/date/time) ---> copied folder (ro/date/time)

For example, when copying from source to destination:

Read-Only file:
(source) ---> readme.text 01-01-2010 00:00:00 -r--
(destination) ---> readme.text 01-01-2010 00:00:00 -r--

Read-Only folder (now):
(source) ---> [ro_example_folder] 01-01-2010 00:00:00 -r--
(destination) ---> [ro_example_folder] 08-08-2010 16:08:28 -r--

Read-Only folder (proposed):
(source) ---> [ro_example_folder] 01-01-2010 00:00:00 -r--
(destination) ---> [ro_example_folder] 01-01-2010 00:00:00 -r--

I hope my explanation will become clearer now.


[/b]
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50512
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed it's currently not supported, sorry.
Author of Total Commander
https://www.ghisler.com
i_like_total_commander
Junior Member
Junior Member
Posts: 3
Joined: 2010-08-08, 07:54 UTC

Post by *i_like_total_commander »

Then, I hope it can serve as an idea proposed for the next version.

That upgrade would allow that the "Copy date/time of directories" option will serve for cloning, when copying or synchronizing directories:

attributes of destination directory == attributes of source directory
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

It would be useful for any folder/file -- not just read-only: To have a tick-box on the dialog to preserve file-dates. After the copy TC could do an internal cm_SetAttrib for dates.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
Post Reply