class FileDownloader
Methods
|
__construct()
Create a new FileDownloader |
||
| string |
download(string $url, string $toPath, string $filename)
Download a file from the given $url and save it to $toPath with $filename. |
Details
at line 9
public
__construct()
Create a new FileDownloader
at line 24
public string
download(string $url, string $toPath, string $filename)
Download a file from the given $url and save it to $toPath with $filename.
If $filename is null then we just use the name from the $url