- Electron version: 1.2.1
- Operating system: OSX

When a user downloads an item I've been trying to get the location that they've saved it to. It's not documented, but I noticed on the downloadItem there is a `getSavePath` function. This always returns an empty string when I call it.

Was wondering if it's not documented for a reason / not working. Or is there a better way to get the location that a user selects?

atom/browser/atom_download_manager_delegate.cc
const GURL& url,
    const std::string& content_disposition,
    const std::string& suggested_filename,
    const std::string& mime_type,
    const base::FilePath& default_download_path,
    const CreateDownloadPathCallback& callback) {
  DCHECK_CURRENTLY_ON(content::BrowserThread::FILE);
  auto generated_name = net::GenerateFileName(url,
                                              content_disposition,
                                              std::string(),
                                              suggested_filename,
                                              mime_type,
                                              std::string());
  if (!base::PathExists(default_download_path))
    base::CreateDirectory(default_download_path);
  base::FilePath path(default_download_path.Append(generated_name));
  content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE,
                                   base::Bind(callback, path));
}
void AtomDownloadManagerDelegate::OnDownloadPathGenerated(
    uint32_t download_id,
    const content::DownloadTargetCallback& callback,
    const base::FilePath& default_path) {
  DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
  auto item = download_manager_->GetDownload(download_id);