Class ZipUtility
Namespace: Unity.SharpZipLib.Utils
Syntax
public static class ZipUtility : object
Methods
CompressFolderToZip(String, String, String)
Compresses the files in the nominated folder, and creates a zip file on disk.
Declaration
public static void CompressFolderToZip(string outPathname, string password, string folderName)
Parameters
Type | Name | Description |
---|---|---|
String | outPathname | The path of the created zip file |
String | password | The password required to open the zip file. Set to null if not required. |
String | folderName | The folder to be compressed |
UncompressFromZip(String, String, String)
Uncompress the contents of a zip file into the specified folder
Declaration
public static void UncompressFromZip(string archivePath, string password, string outFolder)
Parameters
Type | Name | Description |
---|---|---|
String | archivePath | The path to the zip file |
String | password | The password required to open the zip file. Set to null if not required. |
String | outFolder | The output folder |