KuduClientVFSExtensions.

VFSDownloadFile(IKuduClient, FilePath, FilePath) Method

Summary

Downloads remote file locally.

Syntax

public static void VFSDownloadFile(this IKuduClient client, FilePath 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);

 FilePath remoteFilePath = "/site/wwwroot/hello.txt";

 FilePath localFilePath = "./hello.txt";

 kuduClient.VFSDownloadFile(remoteFilePath, localFilePath);

Parameters

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

Return Value

Type Description
void