ok, I've posted a new update of DotNetZip, v188.8.131.52 .
There is now a new property on the ZipFile class, called ZipErrorAction. Use it to specify what you want to do, in the event the DotNetZip library encounters an IO error (such as the one you saw, "The process cannot access the file 'C:\Documents
and Settings\...\JK06.DBF' because it is being used by another process."). You can specify:
- Skip the file
- Throw (which is what it did previously)
The last option invokes an event handler that you provide. You can use this to prompt the user, for example, to ask what they want to do.
The new event handler is ZipFile.ZipError.
At the very least this should provide a simple way for you to skip files that cannot be opened or read.
Let me know what you think.