/// <summary>
/// Unzip files using Extract to directory method
/// </summary>
/// <param name="zipPath">complet path and zipfilename</param>
/// <param name="extractedPath">extracted files desitnation path</param>
public static void UnZipToDir(string zipPath, string extractedPath)
{
try
{
System.IO.Compression.ZipFile.ExtractToDirectory(zipPath, extractedPath);
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
}
# unzip files
import zipfile
funzip = 'zipped_file.zip'
un_zip = zipfile.ZipFile(funzip, 'r')
un_zip.extractall()
un_zip.close()