Method | Description | |
---|---|---|
__construct ( ) | Create a new FileDownloader | |
download ( string $url, string $toPath, string $filename ) : string | 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 |