title: How to get fullpath of dropped folder from file system
body: <p>I am trying to implement drag n drop in my application, which need the full path of folder being dropped.</p>
  
  <p>I have done something like this</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;style&gt;
  #dropzone {
      height:200px;
      width: 200px;
      border: 10px dashed #0c0;
      background-color:cyan;
  }
  &lt;/style&gt;                  
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;div id="dropzone" droppable="true" ondrop ="drop(event)" ondragenter="return false" ondragover="return false"&gt;
  &lt;/div&gt;
  
  &lt;script type="text/javascript"&gt;  
  function drop(e) {
      e.stopPropagation();
      e.preventDefault();
      var length = e.dataTransfer.items.length;
      for (var i = 0; i &lt; length; i++) {
          var entry = e.dataTransfer.items[i].webkitGetAsEntry();
          if (entry.isDirectory) {
              alert(entry);//here i need to get path of folder being dropped.
          }
      }
  }
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html
  </code></pre>
  
  <p>If I alert <code>e.dataTransfer.files[i].name</code> inside <code>for loop</code> then it only show name of folder but not it's path.</p>
  
  <p>Does Javascript allow access to local file system? OR any workaround for this?</p>