Compare files in a read-only ZIP

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
samot
Junior Member
Junior Member
Posts: 56
Joined: 2003-02-21, 11:53 UTC
Location: Koblenz, Germany
Contact:

Compare files in a read-only ZIP

Post by *samot »

- delete the _tc directory in your Temp directory (to get a clear environement)
- create a Zip-File with a text file and set the read-only attribute at the ZIP
- edit the original Text file
- open the ZIP in the left pane, mark the TXT and choose File | Compare by Content
- sync the files manual (copy the changes form the original file to the temporary unpacked TXT at %temp%\_tc)
- save the left file (the temp. unpacked)
- you'll get an error, because the ZIP is write protected (ok)

-> looking at %temp% you'll realize that TC had removed the _tc subdir including your changed file (and you have to do again all your manual syncs of the file)

BTW: if you not chose Compare by Content but press F4 to open it in the editor instead, TC will unpack it to %temp%\_tc_ (with an additional underscore at the end!). This directory / file will not be deleted, if you get the write-protected-error.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You shouldn't work with files in _tc subdir directly. This is a private temporary directory of TC which will be deleted (wiped) completely when an operation is done.
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

Post by *MVV »

ghisler(Author) wrote:You shouldn't work with files in _tc subdir directly. This is a private temporary directory of TC which will be deleted (wiped) completely when an operation is done.
But samot tells that he lose changes in file that couldn't be repacked - TC deletes modified file. I think TC should leave file if it can't be repacked into archive.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, he tried to synchronize files directly with the _tc dir, as I understand it.
Author of Total Commander
https://www.ghisler.com
samot
Junior Member
Junior Member
Posts: 56
Joined: 2003-02-21, 11:53 UTC
Location: Koblenz, Germany
Contact:

Post by *samot »

No, I tried to sync a file inside a read-only ZIP with another (unzipped) version of this file.

TC itself extracts the zipped version into the _tc subdir and deletes it, althrough it can't be written back.
Post Reply