title: Replacement for fileEntry.toURL() in Chrome Packaged Apps
body: <p>I'm using the <a href="http://dev.w3.org/2009/dap/file-system/pub/FileSystem/" rel="nofollow noreferrer">HTML5 FileSystem API</a> in a <a href="http://developer.chrome.com/apps/" rel="nofollow noreferrer">Chrome Packaged App</a> to write to a log file. I want the user to be able to download this file, so I tried something along the lines of:</p>
  
  <pre><code>fs.root.getFile('log.txt', {create: false}, function(fileEntry) {
    var url = fileEntry.toURL();
    // do something with the file url
  });
  </code></pre>
  
  <p>This doesn't help though, because the URL is something like <code>filesystem:chrome-extension://eekedjcagggbfigdmifkmhkjbhiklnpj/temporary/log.txt</code> and it's not possible to open it somewhere.</p>
  
  <p>What technique would you recommend to make a FileSystem API file in a Packaged App downloadable?</p>
  
  <p>Edit: After reading through Ben Well's <a href="https://stackoverflow.com/a/16411835/1062304">answer</a> below, I realized that I'll have to clarify even more what I want. It would seem especially nice to me if there would be a technique that doesn't imply loading the HTML5 Filesystem API file contents, building a blob from it and writing that to a user-chosen path with <a href="http://developer.chrome.com/trunk/apps/fileSystem.html" rel="nofollow noreferrer">chrome.fileSystem API</a>.</p>