CbC with manual file select gives an error

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

CbC with manual file select gives an error

Post by *Flint »

Preconditions:
a) There is an archive c:\Temp\test.rar containing file test.txt. This archive is opened in the left panel.
b) The right panel shows contents of a usual folder and does not contain file named test.txt.

Now, steps to reproduce the bug:
1. Put the cursor on the file test.txt in the left panel (which is inside the archive). Make sure, no files are selected on the right panel.
2. Call Compare by Content.
3. The CbC window will be empty, because no same-named file on the right panel was found.
4. In the CbC window press the ">>" button for the right file and select any text file.
5. Press Compare button.
6. TC shows an error: "Left file not found!"
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48097
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed files from archives cannot be compared in this case - they have to be unpacked first, which doesn't happen because the file on the right side doesn't exist. I don't currently see how to solve this problem, any suggestions?
Author of Total Commander
https://www.ghisler.com
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2ghisler(Author)
On the left side TC shows nonexisting file name (it shows archive name + '\' + file name). That is not correct.
If you just clear this field (when nonexisting filename is selected) on CBC opening, it will be better.
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

ghisler(Author) wrote:any suggestions?
Well, here's how I see it should be done:
1. TC first unpacks the left file and remember it.
2. Opens the CbC with left file already in temporary folder (instead of current C:\Temp\test.rar\test.txt).
3. No right file present - show the empty panels (compare nothing).
4. When the user changes the right file - compare it with the unpacked left one.
5. If the user changes the left file too - no problem, compare the new one.
6. After CbC is closed - remove the unpacked file (we remembered its name at the first step, so no garbage in TEMP directory will remain).
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
Post Reply