title: Getting the full path of a DirectoryEntry
body: <p>Does anyone know how to get the full path of a <code>DirectoryEntry</code> object in a Chrome Packaged App, without any tildes or other shortcuts?</p>
  
  <p>I am writing a <a href="http://developer.chrome.com/extensions/apps.html" rel="nofollow">Google Chrome Packaged App</a>.  My app has a button where a user can choose a directory using <a href="http://developer.chrome.com/apps/fileSystem.html" rel="nofollow">chrome.fileSystem</a> API.  When the directory choice comes back to my app, it is represented by a <code>DirectoryEntry</code> object, which is defined in the <a href="http://www.w3.org/TR/file-system-api/#bib-FILE-API-ED" rel="nofollow">File API</a>.  The object looks like this in the console:</p>
  
  <pre><code>DirectoryEntry {
    filesystem: DOMFileSystem
    fullPath: "/to_read"
    isDirectory: true
    isFile: false
    name: "to_read"
    __proto__: DirectoryEntry
  }
  </code></pre>
  
  <p>I am using Windows and the full path of the directory is</p>
  
  <pre><code>C:\Users\David\Desktop\to_read
  </code></pre>
  
  <p>I would like a function that can return that path or something close.  Unfortunately, the closest thing I found is <a href="http://developer.chrome.com/apps/fileSystem.html#method-getDisplayPath" rel="nofollow"><code>chrome.fileSystem.getDisplayPath</code></a>, but that returns the following:</p>
  
  <pre><code>~\Desktop\to_read
  </code></pre>
  
  <p>The return value from <code>getDisplayPath</code> is not useful to me, because I want to get the full name of the directory (including the drive) so I can compare it to some other full directory paths I have.</p>
  
  <p>I tried calling <code>toURL()</code> on the <code>DirectoryEntry</code> and it returned an empty string.</p>
  
  <p><strong>A bit about my project:</strong> I want to write an iTunes library synchronizer as a Chrome Packaged App.  The iTunes library XML file contains full paths like <code>file://localhost/D:/David/Music/Bob/Bob%20Album/01%20Bob.mp3</code>.  The user will give my app access to his music folders, and I want to be able to tell if he gave me access to the right folders.</p>