KuduClientZipExtensions.

ZipDownloadFile(IKuduClient, DirectoryPath, FilePath) Method

Summary

Downloads remote directory to local zip file.

Syntax

public static void ZipDownloadFile(this IKuduClient client, DirectoryPath remotePath, FilePath localPath)

Examples

 #addin nuget:?package=Cake.Kudu.Client

 string  baseUri     = EnvironmentVariable("KUDU_CLIENT_BASEURI"),
         userName    = EnvironmentVariable("KUDU_CLIENT_USERNAME"),
         password    = EnvironmentVariable("KUDU_CLIENT_PASSWORD");

 IKuduClient kuduClient = KuduClient(
     baseUri,
     userName,
     password);

 DirectoryPath remoteDirectoryPath = "/site/wwwroot/";
 FilePath localFilePath = "./wwwroot.zip";

 kuduClient.ZipDownloadFile(remoteDirectoryPath, localFilePath);

Parameters

Name Type Description
client IKuduClient The Kudu client.
remotePath DirectoryPath The remote source path.
localPath FilePath The local target path.

Return Value

Type Description
void