|
Post by mikelexically on Oct 16, 2009 10:42:53 GMT -5
Am wondering how to track the individual files added before zipping.
In my case I'm using a VLCZip component to make backups of disk files, and I want to know which ones were added to the zip or updated because they were newer.
I'm finding that the FileIndex order in the OnUpdate doesn't correspond to the order in which I added the disk files (though SortMode is set to byNone). I do realise that the OnUpdate allows me to know which ones were replaced, but I also need to know which were added.
(I cannot use the Objects of the FilesList to store data because the FilesList gets cleared outside my control.)
Grateful for your advice -- Mike
|
|
|
Post by Kevin on Nov 2, 2009 8:16:21 GMT -5
Sorry for the delay in replying, I have been out of the country and did not have good access to the internet, though I did still have good email support. Sorry about that.
FileIndex should represent the order of the file in the archive that is being created (not the order that you added the files in the original index). You should be able to use a combination of OnUpdate and OnStartZip to get what you want. After all zipping is over, those files that that you see in OnStartZip should be the ones that were added since updated files are not re-zipped, they are just copied over to the new archive.
Does that help?
Thanks,
Kevin
|
|