<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic You have build the app and in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Filesystem-and-emulator/m-p/1101432#M68829</link>
    <description>&lt;P&gt;You have build the app and install on device to test the app using File API.&lt;/P&gt;

&lt;P&gt;Below are some examples for app that use file API to read/write to files:&amp;nbsp;https://github.com/krisrak/html5-cordova-samples&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2016 17:56:02 GMT</pubDate>
    <dc:creator>Rakshith_K_Intel</dc:creator>
    <dc:date>2016-03-07T17:56:02Z</dc:date>
    <item>
      <title>Filesystem and emulator</title>
      <link>https://community.intel.com/t5/Software-Archive/Filesystem-and-emulator/m-p/1101431#M68828</link>
      <description>&lt;P&gt;I want to create a windows app. On app initialize it has to check if a directory exist. If not create said directory. My problem is I - How do i test this condition in emulator. Does emulator support creating directory and sub directory..Do I have to build window app in order to check my code?&lt;/P&gt;

&lt;P&gt;I get error.code of 1. when using following code in emulator&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;function onDeviceReady() {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; window.requestFileSystem &amp;nbsp;= window.requestFileSystem || window.webkitRequestFileSystem;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail); &amp;nbsp; &amp;nbsp;}&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;function fail(error) {&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;console.log("failed to get filesystem");&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; alert("what is wrong &amp;nbsp;"+error.code)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;function gotFS(fileSystem) {&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;console.log("filesystem got filesystem");&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;fileSystem.root.getDirectory("mydir", {&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;create : true,&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;exclusive : false&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}, dirReady, fail);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;function dirReady(entry) {&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;console.log("filesystem in dir ready");&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;window.appRootDir = entry;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;console.log(JSON.stringify(window.appRootDir));&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;} &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 14:48:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Filesystem-and-emulator/m-p/1101431#M68828</guid>
      <dc:creator>Tony_T_</dc:creator>
      <dc:date>2016-03-07T14:48:18Z</dc:date>
    </item>
    <item>
      <title>You have build the app and</title>
      <link>https://community.intel.com/t5/Software-Archive/Filesystem-and-emulator/m-p/1101432#M68829</link>
      <description>&lt;P&gt;You have build the app and install on device to test the app using File API.&lt;/P&gt;

&lt;P&gt;Below are some examples for app that use file API to read/write to files:&amp;nbsp;https://github.com/krisrak/html5-cordova-samples&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 17:56:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Filesystem-and-emulator/m-p/1101432#M68829</guid>
      <dc:creator>Rakshith_K_Intel</dc:creator>
      <dc:date>2016-03-07T17:56:02Z</dc:date>
    </item>
  </channel>
</rss>

