Page 1 of 1

Synchronize directories - zip to zip copy

Posted: 2009-06-13, 20:26 UTC
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

Posted: 2009-06-14, 19:32 UTC
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.

Posted: 2009-06-15, 03:47 UTC
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