getAsEntry method

Entry getAsEntry ()

Implementation

Entry getAsEntry() {
  Entry entry = _webkitGetAsEntry();

  if (entry.isFile)
    applyExtension('FileEntry', entry);
  else if (entry.isDirectory)
    applyExtension('DirectoryEntry', entry);
  else
    applyExtension('Entry', entry);

  return entry;
}