def _GetStat(self):
    """Retrieves a stat object.

    Returns:
      VFSStat: a stat object.

    Raises:
      BackEndError: when the encoded stream is missing.
    """
    stat_object = vfs_stat.VFSStat()

    # File data stat information.
    stat_object.size = self.path_spec.range_size

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

    return stat_object
def _GetStat ( self ) : stat_object = vfs_stat . VFSStat ( ) stat_object . size = self . path_spec . range_size stat_object . type = stat_object . TYPE_FILE return stat_object
Retrieves a stat object.

    Returns:
      VFSStat: a stat object.

    Raises:
      BackEndError: when the encoded stream is missing.