ExtractFiles produces zero byte files

Jul 23, 2009 at 10:02 PM

Hi Mark,

Great project!   It's making my life much easier.

Here's the problem I got with the new .dll (9.04) and the latest code revision.

Using the method ExtractFiles, I get many zero bytes files !!!
But with the ExtractArchive method, all is fine.


Code (in vb.net)

Module Module1

    Sub Main()
        For Each archive As String In My.Computer.FileSystem.GetFiles("f:\archive", FileIO.SearchOption.SearchTopLevelOnly, "*.7z")
            Using seven As New SevenZip.SevenZipExtractor(archive)
                For Each f As SevenZip.ArchiveFileInfo In seven.ArchiveFileData
                    If f.FileName.ToUpper.EndsWith("TES") Then
                        seven.ExtractFiles("F:\extract", f.Index)
                    End If
                'seven.ExtractArchive("F:\extract") <=== That works perfectly
  End Using Next End Sub End Module

Jul 24, 2009 at 8:02 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Jul 24, 2009 at 8:07 AM

Gosh, thank you! I am extremely surprised but it's really so, though I added only 3 new properties with the latest release! Shame on me! Use 0.53 so far.