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!"
CbC with manual file select gives an error
Moderators: Hacker, petermad, Stefan2, white
CbC with manual file select gives an error
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
Using TC 11.03 / Win10 x64
Using TC 11.03 / Win10 x64
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
Well, here's how I see it should be done:ghisler(Author) wrote:any suggestions?
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 11.03 / Win10 x64
Using TC 11.03 / Win10 x64