In my web page I have a file link to the local drive folder. Such as:
<a href="D:\folder\file.txt">file.txt</a>
<a href="D:\folder>folder</a>
In normal ways, it isn’t possible to open folder from web browser. So, I thought I can do it from a Firefox extension, because I am using Firefox in my job.
To open folder you can use function:
The file read method is shown in nhnb answer, the write method looks like: