TC can't modify dates for junctions
Moderators: Hacker, petermad, Stefan2, white
TC can't modify dates for junctions
TC 8.50 can't modify dates for junctions via standart TC "Change attributes" dialog.
I already wrote about it in Suggestions (please apologize me about repeating), but it seems it is really a bug.
I already wrote about it in Suggestions (please apologize me about repeating), but it seems it is really a bug.
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
It's a misfeature of Windows: When you use SetFileAttributes on a junction, Windows changes the attributes of the target instead.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Wait, attribute setting works fine for junction: e.g. if I set it read-only, it becomes read-only (icons from desktop.ini appear).
But timestamp setting doesn't work. There is an inconsistency: you set timestamp using one method but you get it then using another method (timestamp set for junction isn't shown for that junction). I think you can try opening junction handle with FILE_FLAG_OPEN_REPARSE_POINT flag for setting timestamp for junction itself.
But timestamp setting doesn't work. There is an inconsistency: you set timestamp using one method but you get it then using another method (timestamp set for junction isn't shown for that junction). I think you can try opening junction handle with FILE_FLAG_OPEN_REPARSE_POINT flag for setting timestamp for junction itself.
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Yes, TC just opens the file/folder, sets the timestamp, and closes it.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
This has been fixed in TC 8.52 beta 1, please test it!
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact: