Un Expected beheaviour in Unzipping a zipped file

0

while unzipping an archive file  (having excel in it ) excel file in archive file  are extracted  along with it an empty folder with the same file name  is also created in destination location.

Code I have used is :

 
        public void UnzipFile(string filePath, string strDestination)
        {
            try
            {
                
                if (!string.IsNullOrEmpty(filePath) && !string.IsNullOrEmpty(strDestination))
                {                   
                    Zip zip = new Zip();                   
                    zip.Open(filePath, System.IO.FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.ReadWrite);               
                    
                    Log(LoggerLevel.INFO, "file path for unzipping : " + strDestination);
                    zip.ExtractAll(strDestination);                   
                    zip.Close();
                }
            }

zip
edited 11/16/2017 12:41:37 AM
asked 7/9/2014 5:09:21 AM
add a comment

1 Answers

0

Thanks for your info. Can you send us the zip file to support@componentpro.com so that we can see what is wrong?

 
answered 11/16/2017 12:41:37 AM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged zip or ask your own question.