Version:
CreateZipFile(IFileOperationsExecuter agent, string sourcePath, string targetFileName) Method
Creates a zip file from the specified directory.
Syntax
public
static
void CreateZipFile(IFileOperationsExecuter agent, string sourcePath, string targetFileName)
Parameters
- agent
- Type: IFileOperationsExecuter
The agent.
- sourcePath
- Type: string
The directory to zip.
- targetFileName
- Type: string
The full path of the zip file to create.