title: node-webkit read full path of files from directory
body: <p>I tried the below code in NW.js to read in all files with full path under a given folder but not working. What's wrong? Thanks.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function chooseFiles() {
      var files = $('#fileDialog')[0].files;
      for (var i = 0; i &lt; files.length; ++i) {
          console.log(files[i].path);
      }
  }
  chooseFiles('#fileDialog');</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input type="file" id="fileDialog" nwdirectory /&gt;</code></pre>
  </div>
  </div>
  </p>