[delphizip] Re: R: Re: Add - abort corrupts zip

  • From: "Russell Peters" <russellpeters@xxxxxxxxxxx>
  • To: <delphizip@xxxxxxxxxxxxx>
  • Date: Mon, 16 Sep 2002 07:09:02 +1000

it is the dll that creates the temporary file (or temporary - temporary file
when spanned).
I will have to check the vcl - it might be causing trouble (I just can't see
how the dll could)
- Russell Peters
----- Original Message -----
From: "Matteo Riso" <matteo@xxxxxxxxxxxx>
To: <delphizip@xxxxxxxxxxxxx>
Sent: Sunday, September 15, 2002 10:33 PM
Subject: [delphizip] R: Re: Add - abort corrupts zip


>
> Hello Russell.
>
> I've tested it for myself but I'm still suffering the same problem.
> I used ZipMaster 1.7.0.5 and related DLLs (from the log window of Demo1:
> "Beginning Add to F:\Documents and Settings\Matteo\Desktop\asd.zip
> Loaded ZipDll ver: 170 from
> F:\Programmi\Borland\Delphi6\Lib\VCL\ZipMaster_16p\dll\ZIPDLL.DLL")
>
> Tempdir has been set to "C:\temp" and the asd.zip had 8 files; then I've
> started adding an entire folder and I've aborted.
> The result is always the same: the zip file is corrupted.
>
> I've opened the zipmstr.pas unit and looked at "TZipMaster.Extadd"
> procedure; I've added the following:
>
>     showmessage('Tempdir is: '+TempDir+' - Tempfile is: '+TmpZipName);
>
> after the code line:
>
>     TmpZipName := FZipFileName;     // not spanned - create the outfile
> directly
>
> so a message pops up at the beggining of the add operation.
>
> The tempdir is correctly set to "C:\temp" but the Temp file is just
> "F:\Documents and Settings\Matteo\Desktop\asd.zip", the original zip file.
>
> I've inspected WinZip, too: just as UltimateZip does, it makes a copy of
the
> zip file in a temp folder and the program will modify it. That file will
> replace the original file at the end of the operation, but if user aborts
> the temp copy is deleted.
>
> Greetings,
>
> Matteo Riso
> www.zipgenius.it <http://www.zipgenius.it>
> Happy ZipGenius User #1
>
>
>
> -----Messaggio originale-----
> Da: delphizip-bounce@xxxxxxxxxxxxx
> [mailto:delphizip-bounce@xxxxxxxxxxxxx]Per conto di Russell Peters
> Inviato: domenica 15 settembre 2002 7.47
> A: delphizip@xxxxxxxxxxxxx
> Oggetto: [delphizip] Re: Add - abort corrupts zip
>
>
>
> Checked today and there should be (at least as far as I can see and
> comprehend) no way to corrupt the original zipfile when adding files to it
> is aborted - it builds a temporary file (in TempDir if set) until
> successful.
> This only applies to the 1.70 dll.
> - Russell Peters
> ----- Original Message -----
> From: "Russell Peters" <russellpeters@xxxxxxxxxxx>
> To: <delphizip@xxxxxxxxxxxxx>
> Sent: Sunday, September 15, 2002 7:35 AM
> Subject: [delphizip] Add - abort corrupts zip
>
>
> >
> > I have to check exactly why this is happening as a temporary file is
> (should
> > be being) used.
> > when you add (or update) files to an existing zipfile the files that are
> not
> > being replaced must be copied to the new file (normally) before the new
> > files are added, so I would have assumed that one is only renamed upon
> > success.
> > I hope to check out what is going wrong today but I wanted to save
people
> > the task making it save to yet another temporary file (while I hopefully
> fix
> > it)
> > Russell Peters
> > http://www.users.bigpond.com/russellpeters/delphizip.html
> >
> >
> >
> >
>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.384 / Virus Database: 216 - Release Date: 21/08/2002
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.384 / Virus Database: 216 - Release Date: 21/08/2002
>
>
>


Other related posts: