[delphizip] Keeping old versions of a file in a zip archive

  • From: "James Turner" <james.d.h.turner@xxxxxxxxxxxx>
  • To: <delphizip@xxxxxxxxxxxxx>
  • Date: Wed, 27 Nov 2002 01:45:07 -0000

So far as I am aware, there is nothing in the zip format definition to
prevent several files using exactly the same name. That said, this would be
highly inadvisable. All that is really needed is a strategy to rename an
existing file rather than overwrite it. This could be implemented partly by
a new event handler. If no event handler is assigned, then behaviour would
be as now, thereby maintaining backward compatibility. If an event handler
is assigned, then it must return, say, a null string to delete the file, '*'
to skip the file, and any other value as the new name - or something like
that.

-- James Turner
www.skaro.net



Other related posts: