Open local folder via chrome extension

I am creating a Chrome extension that (among other things) allows the user to open a local folder when he clicks the link "file: ///".

I understand that this cannot be done in JavaScript without an extension. ( Open the local folder from the link ), and I know that I can open the download folder, for example:chrome.downloads.showDefaultFolder();

My question is: if possible through the Chrome extension.


Another interesting point: on the extension page (chrome: // extensions /) in my extension section (which is launched from the local folder) there is a link "Loaded from:" as follows:

screenshot

When I click on this link, the extension folder is open. I was looking for a script who did this and I found this:chrome.send('extensionSettingsShowPath', [String(extension.id)]);

If I understand what this line does, maybe I will know how to do it.

+4
source share

All Articles