Click or drag to resize

CrestronZIPUnzip Method

Method to unzip an archive to a specified (optional) destination folder

Namespace: Crestron.SimplSharp
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public static CrestronZIPResultCode Unzip(
	string zipFilePath,
	string destinationPath
)

Parameters

zipFilePath  String
The path to the zip file to unzip
destinationPath  String
The path to the destination folder to unzip to (optional). If NULL or empty, the files are unzipped to the folder where the zip file resides.

Return Value

CrestronZIPResultCode
Result code indicating success or failure
Remarks
The zip file is not deleted after unzipping. This operation overwrites any existing file in the destination folder with the same name. However, if the destination folder has an existing folder with the same name as one of the file(s) being unzipped then the file will not be unzipped and ZR_NOFILE error will be returned. Conversely, if we have a folder in the file being unzipped and the destination folder contains a file with the same name then the folder will not be unzipped with ZR_NOFILE error returned.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also