TC 9.21a (both 32 and 64 bit).
To do:
1. Start TC
2. Open Sync tool (any dir, no matter)
3. Compare dirs
4. Rename any file to get tailing dot (e.g. icon.ico -> icon., or icon.ico.old -> icon.ico.)
There we get 3 problems:
1. File get's proper name without tailing dot
2. Sync tool shows tailing dot
3. File is no more accessible until new compare action taken.
[TC v9.21a] Tailing fileneme's dots in Sync tool
Moderators: Hacker, petermad, Stefan2, white
Re: [TC v9.21a] Tailing fileneme's dots in Sync tool
I confirm that TC sync tool doesn't filter filenames during rename, and it does still show trailing dots while Windows removes them from filenames on rename, so TC is unable to do something with this file because it assumes that it has another name.
- ghisler(Author)
- Site Admin
- Posts: 50471
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC v9.21a] Tailing fileneme's dots in Sync tool
Windows does not support trailing dots, sorry.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC v9.21a] Tailing fileneme's dots in Sync tool
You can use GetFullPathName here before rename to get preprocessed file name that will be used by Windows rename function:
Code: Select all
wchar_t buf[MAX_PATH];
GetFullPathName(L"D:\\dir\\test.file.ext.. ...", MAX_PATH, buf, nullptr);
// --> L"D:\dir\test.file.ext"