1

It looks like javascript/jquery can only open up files at a specific filepath and not display the directory itself. is there a way i can open a directory with jquery? when i go to open a filepath i get nothing but about:blank what i need it to display is in the screenshot below.

$( document ).ready(function() {
    $(".folder").click(function() {
      window.open('file:///C:/Users/ALilland/Documents/test/');
    });
});

I am trying to open this directory, my tested browser is google chrome, therefore I have heard there should be a way. I have heard of something called chrome.fileSystem but does this work with javascript? or is it exclusive to chrome applications?

enter image description here

ADL
  • 185
  • 8
  • 19
  • Possible duplicate of [Open local folder from link](http://stackoverflow.com/questions/5246292/open-local-folder-from-link) – EasyBB Mar 15 '16 at 00:13

1 Answers1

-1

Your web browser will not allow you to access the local file system if you navigate using the HTTP(S) protocol. This is a duplicate of this question.

Community
  • 1
  • 1
Mark Davis
  • 26
  • 3
  • Not really an answer. Should have just been marked duplicate. – EasyBB Mar 15 '16 at 00:11
  • You did not answer my question nor is it a duplicate, my question is in the context of the Google API – ADL Mar 15 '16 at 00:14
  • Sorry, my bad, I assumed you were developing a regular web page. You didn't mention that you were writing a Chrome App. – Mark Davis Mar 15 '16 at 00:33