Pass download directory directly to startDownload

This commit is contained in:
sgourdas
2024-08-11 23:45:27 +03:00
parent ff6d8a4b30
commit 566b40a2f8
3 changed files with 7 additions and 4 deletions

View File

@ -191,10 +191,11 @@ class Downloader
* User should call `update` on the returned `Download` to have an accurate status.
*
* @param uri: The uri of the thing to download.
* @param downloadDir: The download directory where the thing should be stored (takes precedence over any "dir" in `options`).
* @param options: A series of pair <option_name, option_value> to pass to aria.
* @return: The newly created Download.
*/
std::shared_ptr<Download> startDownload(const std::string& uri, const Options& options = {});
std::shared_ptr<Download> startDownload(const std::string& uri, const std::string& downloadDir, Options options = {});
/**
* Get a download corrsponding to a download id (did)