Compare files in a read-only ZIP

Please report only one bug per message!

Moderators: sheep, Hacker, Stefan2, white

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

Compare files in a read-only ZIP

Post by *samot » 2009-10-29, 08:03 UTC

- 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: 37766
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2009-10-29, 17:09 UTC

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
http://www.ghisler.com

User avatar
MVV
Power Member
Power Member
Posts: 8343
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV » 2009-10-29, 18:23 UTC

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: 37766
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2009-11-02, 17:31 UTC

No, he tried to synchronize files directly with the _tc dir, as I understand it.
Author of Total Commander
http://www.ghisler.com

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

Post by *samot » 2009-11-02, 17:52 UTC

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