Problem while deleting empty dirs in asymetric sync

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

Moderators: Hacker, petermad, Stefan2, white

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

Problem while deleting empty dirs in asymetric sync

Post by *HBB »

TC8.0-64-Beta8 + Win7-64

There seems a problem about deleting the empty folders in asymetric synchronization. This problem may only be for TC8.0-Beta8.

Edited >>> Problem is probably because of descript.ion file which still exist after synchronization.

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

Post by *ghisler(Author) »

Descript.ion file handling depends on whether you decide to copy comments with files or not. If not, descript.ion files aren't deleted directly. Instead, TC removes comments from them when deleting files. If some comments remain, e.g. because you deleted files having comments with some other program, then the descript.ion files will remain too.
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 »

Probably, I could not explain it correctly. Sorry for poor english...

While asymetric synchronization, if a directory exists at right side (target) and if correspondence of it does not exist at left side (source), it should be removed normally (because of expected behaviour of asymetric sync).

This is not related to the behaviour of descript.ion file itself. Problem is about the asymetric synchronization behaviour.

In my case, there is no some other program (only TC). I simply changed the name of a folder in my portable disk and I tried to backup.

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

Post by *HBB »

Since I has just started to use comments in TC, I see somethings lately.

I understand that TC ignores descript.ion files completely in asymetric synchronization. No copy and no delete... ("No copy" is partially true, because TC copies descript.ion file when the a folder does not exist at right side).

I use the asymetric synchronization for backup purposes. If this is a feature, this means that I will never get my comments when I lose my original data and recall backup copy.

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

Post by *ghisler(Author) »

You can copy the descript.ion files too, but only if you disable the option "copy comments with files" in the configuration.
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 »

Unbelievable! it works. It is difficult to guess this option effects the synchronization.

But, by this way, I am not able to copy comments with files.

Is it possible to seperate these options?
Users may want to copy files/folders with comments and need to copy/delete descript.ion file in an asymetric synchronization at the same time.

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

Post by *ghisler(Author) »

But, by this way, I am not able to copy comments with files.
Of course not - either you copy the comments with the files, or you copy the comment files as normal files. You can't do both.

When you synchronize while copying comments with files is on, the comments will be copied only when the associated files are copied.
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 »

Mr. Ghisler

After a lot of additional test, I am almost sure that asymetric synchronization works well for the descript.ion files.

But, I suspect that TC sometimes may not update the descript.ion file correctly for a reason. I see this when I look at the content of my old descript.ion files (the comments of the folders that I delete before still exist in the descript.ion file).

Additionally the descript.ion file in the installation file of TC caused me to be mistaken. You can see it by making followings :
1) unzip the installation file (install.cab in the tc80x32beta9.exe) to a temp folder and open it at the right panel.
2) open an empty folder at left panel.
3) asymetrically compare and synchronize them.
all files are deleted at the right panel except descript.ion file.

Regards
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

The interesting thing is that the descript.ion file which is not deleted holds 1 single entry. This entry is the only entry about a folder: LANGUAGE. All entries about files have been removed together with the files. Only the entry about the folder has not been removed when the folder was removed.

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

Post by *HBB »

There seems a break line at the just beginning of the "www.ghisler.com" when I view it by Lister (F3).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have checked it now - it's indeed a problem with folder comments, TC seems to delete only the file comments.
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 »

I still have an issue that I could not resolve.

I understand that :
- Asymetrical synchronization is not a simple backup tool (in other words, purpose of it is not only to create an exact copy of left side at right side).
- So, TC does not take into consideration "descript.ion" files in asymetric synchronization (unless one disables the option "copy comments with files" in the configuration).

Assume the following scenario ("copy comments with files" is enabled) :
- At left side, there is a folder which include some files and folders with a descript.ion file.
- At right side, there is a folder which is empty (no file and no folder).
After comparing and synchronizing them asymetrically, TC copies descript.ion file from left to right without sense!

An empty folder is also a folder. If TC skip the descript.ion files in asymetrical synchronization , it must do it also for empty folders.

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

Post by *ghisler(Author) »

Sorry, the behaviour you describe is intentional.
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 »

Tested with TC8.0 Beta 11 (copy comments with files is unchecked) :

Seems no problem to delete comments of folders anymore.

Regards
Post Reply