def _GetStat(self):
    stat_object = vfs_stat.VFSStat()

    # The root file entry is virtual and should have type directory.
    if self._is_virtual:
      stat_object.type = stat_object.TYPE_DIRECTORY
    else:
      file_object = self.GetFileObject()
      if not file_object:
        raise errors.BackEndError(
            u'Unable to retrieve SQLite blob file-like object.')

      try:
        stat_object.type = stat_object.TYPE_FILE
        stat_object.size = file_object.get_size()
      finally:
        file_object.close()

    return stat_object
Retrieves the stat object.
dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/vfs/sqlite_blob_file_entry.py/SQLiteBlobFileEntry._GetStat