From 4e9b19074f65f3f0f37aee2db60b5b7983609eff Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 27 Jul 2016 17:33:36 -0700 Subject: [PATCH] Make downloadItem.getSavePath() public --- docs/api/download-item.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/api/download-item.md b/docs/api/download-item.md index e0416d8ef26..7ec8fd1896f 100644 --- a/docs/api/download-item.md +++ b/docs/api/download-item.md @@ -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.