[TC 8.0b17 x32]Copy date/time for read-only directory

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
User avatar
Usher
Power Member
Power Member
Posts: 1727
Joined: 2011-03-11, 10:11 UTC

[TC 8.0b17 x32]Copy date/time for read-only directory

Post by *Usher »

Copy date/time for read-only directory doesn't work now. It worked for TC 7.x and early 8.0 betas.
Hidden or system directories are copied OK.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50861
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

NOT confirmed, works fine here!

Did you recently change virus scanner? Some scanners can cause that.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1727
Joined: 2011-03-11, 10:11 UTC

Post by *Usher »

I always do my test without AV.
It's still not fixed. You should test copying for different file systems, f.e. try to copy Read-only directory from NFTS to FAT32 partition. It goes wrong under Win2000 and WinXP.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
petermad
Power Member
Power Member
Posts: 16115
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I can confirm that when copying a read-only directory from a NTFS partition to a FAT32 partition the date is set to current date.

I can also confirm that there is no problems with the date when copying hidden, system or system+hidden directories.

It is only for copying NTFS -> FAT32, not the other direction.

I can reproduce it under Windows XP, but not under Windows 7 x64 with either TC 8.0b22 version or with TC 7.56a.

Testet with clean ini file except for CopyDirTimeStamp=1, and with Virus scanner disabled.

Unlike Usher I can also reproduce the error with TC 7.57a rc1 and TC 7.56a
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50861
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I have no plans to support that.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16115
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Sorry, I have no plans to support that.
Hmm, it doesn't seem to be a matter of supporting a feature, more like a bug that only expresses itself under certain circumstances.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50861
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately such special functions are always a balancing act. In this case, I would have to set the timestamp before setting the attribute. But this could have negative side effects on other file systems, e.g. the date changing again when the attribute is set.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16115
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

But why does it work under Windows 7 x64, and not under WinXP (both testet with TC 8 32bit) ?
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50861
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This depends on the underlying file system drivers: If they ignore the "read only" attribute, the folder date can be set - if not, it can't.
Author of Total Commander
https://www.ghisler.com
Post Reply