Page 1 of 1

[TC v9.21a] Tailing fileneme's dots in Sync tool

Posted: 2018-09-09, 11:23 UTC
by MaxX
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.

Re: [TC v9.21a] Tailing fileneme's dots in Sync tool

Posted: 2018-09-09, 11:33 UTC
by MVV
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.

Re: [TC v9.21a] Tailing fileneme's dots in Sync tool

Posted: 2018-09-10, 13:06 UTC
by ghisler(Author)
Windows does not support trailing dots, sorry.

Re: [TC v9.21a] Tailing fileneme's dots in Sync tool

Posted: 2018-09-10, 13:28 UTC
by MVV
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"