code: def _EntriesGenerator(self):
      
      location = getattr(self.path_spec, 'location', None)
  
      if location and location.startswith(self._file_system.PATH_SEPARATOR):
        cpio_archive_file = self._file_system.GetCPIOArchiveFile()
        for cpio_archive_file_entry in cpio_archive_file.GetFileEntries(
            path_prefix=location[1:]):
  
          path = cpio_archive_file_entry.path
          if not path:
            continue
  
          _, suffix = self._file_system.GetPathSegmentAndSuffix(
              location[1:], path)
  
          # Ignore anything that is part of a sub directory or the directory
          # itself.
          if suffix or path == location:
            continue
  
          path_spec_location = self._file_system.JoinPath([path])
          yield cpio_path_spec.CPIOPathSpec(
              location=path_spec_location, parent=self.path_spec.parent)
docs: Retrieves directory entries.
  
      Since a directory can contain a vast number of entries using
      a generator is more memory efficient.
  
      Yields:
        CPIOPathSpec: path specification.