Summary
Downloads the specified resource over HTTP to the specified output path.
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Download")]
public static void DownloadFile(this ICakeContext context, string address, FilePath outputPath)
Examples
var outputPath = File("./index.html");
DownloadFile("http://www.example.org/index.html", outputPath);
Attributes
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
address |
string |
The URL of the resource to download. |
outputPath |
FilePath |
The output path. |
Return Value