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.



screenshot



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.






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







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.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)