File delete problem in synchronization

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
HBB
Senior Member
Senior Member
Posts: 295
Joined: 2008-05-05, 21:31 UTC

File delete problem in synchronization

Post by *HBB »

After I compared two directories in asymetric synchronization, some files appeared in right panel (should be deleted). Since the path of those files is longer than 256 characters, sync could not delete them.

Win7-64 & TC7.55-B3

Edited >> -------------------------------------------------------------------------
Left directory = Folder in a Mapped Drive to network PC by VPN
Right Directory = Folder in a Mapped Drive to network PC by LAN
-------------------------------------------------------------------------------------

Regards
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Could you try if you can delete such a file in the normal TC window? I guess that this specific network drive doesn't support the access to names longer than 256 characters over the network...
Author of Total Commander
https://www.ghisler.com
HBB
Senior Member
Senior Member
Posts: 295
Joined: 2008-05-05, 21:31 UTC

Post by *HBB »

File delete operation in normal TC panel is succesfull, there is no problem. Problem occurs in synchronization.

I don't think this is a specific network drive problem, Because :

1) In drive C, I created a file which is name is as follows :
12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901.txt

2) I created a directory c:\Temp\Sync\Target and I copied this file into the c:\Temp\Sync\Target

3) I created an empty directory c:\Temp\Sync\Source

4) I compared the above directories in asymetric synchronization
Left panel : c:\Temp\Sync\Source
Right panel : c:\Temp\Sync\Target

5) Sync found the above text file should be deleted in right panel.

6) When the synchronize button is pressed, Deleting fails...

Another issue : If "As Administrator" button is pressed, TC goes to infinite loop.

I tried above example in WinXPProSP3 by TC7.55B3

Regards
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I get the same problem in sync and in main delete function. The reason is the recycle bin: It cannot handle such long names.

The solution is to delete the file with Shift+Del or Shift+F8. In the sync tool, you need to hold down Shift while clicking on the "Synchronize" button, or when confirming the copy dialog with OK.

TC doesn't currently try to delete the file directly if deleting to recycle bin fails, to prevent data loss.
Author of Total Commander
https://www.ghisler.com
HBB
Senior Member
Senior Member
Posts: 295
Joined: 2008-05-05, 21:31 UTC

Post by *HBB »

You are right. Windows explorer also does not allow to delete the file (except mapped drives).

Thanks for your explanations and hints about using shift button.
Post Reply