Synchronize directories - zip to zip copy

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
ado
Senior Member
Senior Member
Posts: 445
Joined: 2003-02-18, 13:22 UTC
Location: Slovakia, Pezinok

Synchronize directories - zip to zip copy

Post by *ado »

Christian,
It would be nice if you can support copy of files from zip to zip file. It is supported when I open zip files in left and right panel, but if I compare 2 zip files via sync. dirs and I find difference, I simply cannot copy select file(s) from zip to zip

thank you

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

Post by *ghisler(Author) »

Sorry, this isn't possible, because copying from one zip to the other changes the file offsets in the target file, so the second sync step in the other direction will fail.
Author of Total Commander
https://www.ghisler.com
User avatar
ado
Senior Member
Senior Member
Posts: 445
Joined: 2003-02-18, 13:22 UTC
Location: Slovakia, Pezinok

Post by *ado »

In many past years I learned, that I cannot judge in terms of difficulty another programmer if I do not know code, but let me understand this: how come it works between directory and zip file? Or in such case you simply internally "change the order of operations"? 1st zip to dir and then dir to zip?
...what about you'll extract those files from target zip into some temp directory before you'll change offsets and use them later?
So instead of "not possible":
1. extract left
2. copy to right
3. extract right - broken
4. copy to left
you would do:
1. extract left
2. extract right
3. copy to right
4. copy to left

(maybe in TC 8.0 right?) ;-)

ado
Post Reply