Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# unzip files

 /// <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);
            }
        }
Comment

# unzip files

# unzip files
import zipfile
funzip = 'zipped_file.zip'
un_zip = zipfile.ZipFile(funzip, 'r')
un_zip.extractall()
un_zip.close()
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity add explosion force 
Csharp :: Error inflating class android.support.constraint.ConstraintLayout 
Csharp :: remove repeated items in a list unity 
Csharp :: button color uwp c# 
Csharp :: c# reverse list 
Csharp :: bin/bash bad interpreter 
Csharp :: random value in array c# 
Csharp :: change textbox location C# 
Csharp :: c# print out 
Csharp :: c# run c# code from string 
Csharp :: c# socket bind to localhost 
Csharp :: radians to degree c# 
Csharp :: unity movetowards 2d 
Csharp :: c# map number range 
Csharp :: unity array to list 
Csharp :: system.text.json DeserializeAsync when to use 
Csharp :: unity list 
Csharp :: unity c# reference link url 
Csharp :: Join Or Create Room() photon 
Csharp :: mymove() method c# 
Csharp :: xamarin picker item 
Csharp :: add tablelayoutpanel dynamicly to winform in c# 
Csharp :: unity how to remove a tag 
Csharp :: check internet connection in c# 
Csharp :: how to make a object disapear in windows form c# 
Csharp :: if string contains number c# 
Csharp :: the .net core sdk cannot be located unity 
Csharp :: .net core authorizationhandlercontext 
Csharp :: how to ping in c# forms 
Csharp :: c# read char 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =