def GetParentFileEntry(self):
    location = getattr(self.path_spec, u'location', None)
    if location is None:
      return

    parent_location = self._file_system.DirnamePath(location)
    if parent_location is None:
      return
    if parent_location == u'':
      parent_location = self._file_system.PATH_SEPARATOR

    parent_path_spec = getattr(self.path_spec, u'parent', None)
    path_spec = cpio_path_spec.CPIOPathSpec(
        location=parent_location, parent=parent_path_spec)
    return CPIOFileEntry(self._resolver_context, self._file_system, path_spec)
Retrieves the parent file entry.
dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/vfs/cpio_file_entry.py/CPIOFileEntry.GetParentFileEntry