docs: add more info about downloadItem.setSavePath api (#25402)
* docs: add more info about downloadItem.setSavePath api add more info about downloadItem.setSavePath api * Update docs/api/download-item.md ^_^ Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com> Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
This commit is contained in:
parent
22c6c891be
commit
6aaaabd90f
1 changed files with 1 additions and 0 deletions
|
@ -79,6 +79,7 @@ The `downloadItem` object has the following methods:
|
||||||
* `path` String - Set the save file path of the download item.
|
* `path` String - Set the save file path of the download item.
|
||||||
|
|
||||||
The API is only available in session's `will-download` callback function.
|
The API is only available in session's `will-download` callback function.
|
||||||
|
If `path` doesn't exist, Electron will try to make the directory recursively.
|
||||||
If user doesn't set the save path via the API, Electron will use the original
|
If user doesn't set the save path via the API, Electron will use the original
|
||||||
routine to determine the save path; this usually prompts a save dialog.
|
routine to determine the save path; this usually prompts a save dialog.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue