I have a .zip file created elsewhere that my app needs to unzip. The archive contains numerous files and folders (the file itself is about 350Mb zipped, 900Mb+ unzipped) of all different sizes and depths. When I have the Xceed component unzip it, everything seems fine, but there are a handful of folders and a couple files that don't get unpacked. The folders are empty folders (though still necessary) but not sure about the files.
The code I am using (_ArchiveFile and _UnzipFolder are properties set prior to method execution):
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
Cursor = Cursors.WaitCursor
Dim zip As New ZipArchive(New DiskFile(_ArchiveFile))
Dim folder As New DiskFolder(_UnzipFolder)
zip.CopyFilesTo(folder, True, True)
Catch ex As Exception
Cursor = Cursors.Default
Throw New Exception(String.Format("Unzip Failed:{0}{1}", vbCrLf, ex))
Finally
Cursor = Cursors.Default
End Try
End Sub
What is it I am doing or not doing (right/wrong) that could be causing this? Thanks
-- Andrew