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