From 6aaaabd90ff16ca37dbb3ec82f24bd6c9d730d33 Mon Sep 17 00:00:00 2001 From: liulun Date: Wed, 23 Sep 2020 10:02:05 +0800 Subject: [PATCH] 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 Co-authored-by: Samuel Attard --- docs/api/download-item.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api/download-item.md b/docs/api/download-item.md index c10348046c..d6cbeb6df3 100644 --- a/docs/api/download-item.md +++ b/docs/api/download-item.md @@ -79,6 +79,7 @@ The `downloadItem` object has the following methods: * `path` String - Set the save file path of the download item. 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 routine to determine the save path; this usually prompts a save dialog.