This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.SFTP.
Summary
Downloads a file from the SFTP server
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