Subject: Un Expected beheaviour in Unzipping a zipped file Date: 2014-07-09 05:09:21 From: padmalatha jagana Source: un-expected-beheaviour-unzipping-zipped-file ----------------------------------------------------------------------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 :
---------------------------------------------------------------------- Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor who sold you the license and ask for your money back. Back to ComponentPro Q&A Forum Index
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();
}
}