Wrap FileEntry objects properly as Files or Directories