Merge pull request #6629 from electron/download-item-get-save-path

Set download item save path to selected path from dialog
This commit is contained in:
Cheng Zhao 2016-07-28 15:23:43 +09:00 committed by GitHub
commit e73bd00854
4 changed files with 22 additions and 6 deletions

View file

@ -80,6 +80,12 @@ The API is only available in session's `will-download` callback function.
If user doesn't set the save path via the API, Electron will use the original
routine to determine the save path(Usually prompts a save dialog).
### `downloadItem.getSavePath()`
Returns the save path of the download item. This will be either the path
set via `downloadItem.setSavePath(path)` or the path selected from the shown
save dialog.
### `downloadItem.pause()`
Pauses the download.