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

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MaxX
Power Member
Power Member
Posts: 1024
Joined: 2012-03-23, 18:15 UTC
Location: UA

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

Post 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.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

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

Post 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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

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

Post by *ghisler(Author) »

Windows does not support trailing dots, sorry.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

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

Post 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"
Post Reply