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.Ftp.
Summary
Uploads the file to the FTP server using the supplied credentials.
Syntax
public static void FtpUploadFile(this ICakeContext context, Uri serverUri, FilePath fileToUpload, string username, string password)
Examples
Task("UploadFile")
.Does(() => {
var fileToUpload = File("some.txt");
FtpUploadFile("ftp://myserver/random/test.htm", fileToUpload, "some-user", "some-password");
});
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
serverUri |
Uri |
FTP URI requring FTP:// scehma. |
fileToUpload |
FilePath |
The file to be uploaded. |
username |
string |
Username of the FTP account. |
password |
string |
Password of the FTP account. |
Return Value