CakeSFTP.

SFTPDownloadFile(ICakeContext, SFTPSettings, string, string) Method

Summary

Downloads a file from the SFTP server
Assembly
Cake.SFTP.dll
Namespace
Cake.SFTP
Containing Type
CakeSFTP

Syntax

public static void SFTPDownloadFile(this ICakeContext cakecontext, SFTPSettings settings, string remoteFilePath, string localFilePath)

Examples

SFTPDownloadFile(settings, "/uploads/somefile.txt", "./somefile.txt");

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
cakecontext ICakeContext The context.
settings SFTPSettings The settings file for the SFTP server.
remoteFilePath string The folder on the SFTP server where you want to download the file, including the remote filename.
localFilePath string The path to the local file you want to download.

Return Value

Type Description
void