code: def IsAllocated(self):
      
      if self._stat_object is None:
        self._stat_object = self._GetStat()
      return self._stat_object and self._stat_object.is_allocated
docs: Determines if the file entry is allocated.
  
      Returns:
        bool: True if the file entry is allocated.