Otter SDK Reference
Version:

ExtractZipFile(IFileOperationsExecuter agent, string sourceFileName, string targetPath, bool overwrite) Method

Extracts a zip file into the specified directory.

Syntax

public static void ExtractZipFile(IFileOperationsExecuter agent, string sourceFileName, string targetPath, bool overwrite)

Parameters

agent
Type: IFileOperationsExecuter

The agent.

sourceFileName
Type: string

The full path of the zip file to extract.

targetPath
Type: string

The full path of the directory to extract to.

overwrite
Type: bool

Value indicating whether files in targetPath may be overwritten if necessary.