def _GetStat(self):
    encoded_stream = self.GetFileObject()
    if not encoded_stream:
      raise errors.BackEndError(
          u'Unable to open encoded stream: {0:s}.'.format(
              self.path_spec.comparable))

    try:
      stat_object = vfs_stat.VFSStat()

      # File data stat information.
      stat_object.size = encoded_stream.get_size()

      # Date and time stat information.

      # Ownership and permissions stat information.

      # File entry type stat information.
      stat_object.type = stat_object.TYPE_FILE

      # Other stat information.

    finally:
      encoded_stream.close()

    return stat_object
Creates a construction fork of the stream. Used for constructing streams in functional
dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/vfs/encoded_stream_file_entry.py/EncodedStreamFileEntry._GetStat--crossover with--dataset/ETHPy150Open Stiivi/brewery/brewery/streams.py/Stream.fork