Hello,

I'm using SharpZipLib and I'm trying to understand why my files are not extracting to the target directory that I specify.

I have a zip file under C:\tmp\TestData\. I want to extract it to C:\tmp\TestData\temp\. Instead, it extracts it to C:\tmp\TestData\temp\tmp\TestData\. That is, it seems to be taking the original path which the zip file is under and tacking that onto the target directory that I specify. Why is it doing this?

Here's my code:

Code:
        private bool UnzipAcmZipFile(string pathAndName)
        {
            if (!File.Exists(pathAndName) ||
                !pathAndName.EndsWith(acmZipExtensionStr))
            {
                return false;
            }

            FastZip fastZip = new FastZip();
            fastZip.ExtractZip(pathAndName, "C:\\tmp\\TestData\\temp\\", string.Empty);

            return true;
        }