title: intel XDK directory browsing
body: <p>I'm trying to get a way to reach and parse all JSON file from a directory, witch inside an Intel Xdk project. All files in my case stored in '/cards' folder of the project.
  I have tried to reach theme with fs.readdirSync('/cards') method, but that wasn't pointed to the location what I expected, and I haven't got luck with 'intel.xdk.webRoot' path.</p>
  
  <p>With the simulator I've managed to get files, with a trick: </p>
  
  <p><code>
  fs.readdirSync(intel.xdk.webRoot.replace('localhost:53862/http-services/emulator-webserver/ripple/userapp/', '')+'cards');
  </code></p>
  
  <p>(intel.xdk.webRoot contains absolute path to my '/cards' folder)</p>
  
  <p>and its work like a charm, but it isn't working in any real device what I'd like to build it.
  I have tried it with iOS7 and Android 4.2 phones.</p>
  
  <p>Please help me to use in a great way the fs.readdirSync() method, or give me some alternate solution.</p>
  
  <p>Thanks and regards,</p>
  
  <p>satire</p>