KuduClientVFSExtensions.

VFSUploadFile(IKuduClient, FilePath, FilePath) Method

Summary

Uploads file to remote path.

Syntax

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

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.VFSUploadFile(localFilePath, remoteFilePath);

Parameters

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

Return Value

Type Description
void