Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

SharpZipLib fails to extract zipped files with no file extension.

$
0
0

I have a zip file, let's call it "zipfile.zip"

in "zipfile.zip" there is a file with no file extension, let's call it "myfile"

When i run my vb.net code it doesn't extract anything.

When I add a new file call "myfile2.txt" it only extracts that one file, instead of both files.

 

is this a limitation to the ultility or am I not doing something correctly?

I also tried using the getentry and findentry, both failed to find the file in the zip file.

However I am able to open winzip and extract the file fine.

Please Help.

 

Here's my very simple code in vb.net

 Dim x As New FastZip, FileFilter As String = Nothing

                Try

                    x.ExtractZip(ZipFilePath, outpath, FileFilter)

                    Return True

                Catch ex As Exception

                    MessageBox.Show(ex.Message, "Unzip file failed", MessageBoxButtons.OK, MessageBoxIcon.Error)

                    Return False

                End Try


Viewing all articles
Browse latest Browse all 1764

Latest Images

Trending Articles



Latest Images