def GetRootFileEntry(self):
    """Retrieves the root file entry.

    Returns:
      APFSContainerFileEntry: a file entry.
    """
    path_spec = apfs_container_path_spec.APFSContainerPathSpec(
        location=self.LOCATION_ROOT, parent=self._path_spec.parent)
    return self.GetFileEntryByPathSpec(path_spec)
Retrieves the root file entry.

    Returns:
      APFSContainerFileEntry: a file entry.