I know that I can use:
chrome.downloads.download({
url: “http://your.url/to/download”,
filename: “suggested/filename/with/relative.path” // Optional
});
to save some file to a user specified location. Is there any way to make that location be a part of the extensions folder?
A few possible use cases:
- Perhaps I wanted to allow the user to save a new icon to use for the extension.
- Perhaps I wanted to allow the user to simply save files to be used by the extension without worrying about those files being manually deleted.