Open local folder via chrome extension
Open local folder via chrome extension
I'm creating a Chrome extension that (among other things) allow the user to open a local folder when he click on a "file:///" link.
I understand that it's can't be done in JavaScript without extension. (Open local folder from link) and I know that I can open the "download" folder, like this: chrome.downloads.showDefaultFolder();
chrome.downloads.showDefaultFolder();
My question is, if it possible via Chrome extension.
When I click on this link the extension folder is open. I was searched the script who do this and I found this: chrome.send('extensionSettingsShowPath', [String(extension.id)]);
chrome.send('extensionSettingsShowPath', [String(extension.id)]);
If I will understand what this line do, maybe I will know how to do this.
Possible duplicate of How to open Windows Explorer (Windows+E) using Javascript
– nycynik
Sep 9 '18 at 20:08
@nycynik not necessarily at all. My question is about chrome extension, which have more possibility to allow the code to interact with the hosting Operation System than js in the browser.
– Mosh Feu
Sep 11 '18 at 18:36
0
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
showPath only shows the specified extension's path, not an arbitrary one. I think the behavior you want can be implemented via native messaging.
– wOxxOm
Jul 8 '15 at 17:37