def _EntriesGenerator(self):
    location = getattr(self.path_spec, u'location', None)

    if (location is None or
        not location.startswith(self._file_system.PATH_SEPARATOR)):
      return

    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)
Delete the image, along with any generated thumbnails.
dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/vfs/cpio_file_entry.py/CPIODirectory._EntriesGenerator--crossover with--dataset/ETHPy150Open SmileyChris/easy-thumbnails/easy_thumbnails/files.py/ThumbnailerFieldFile.delete