code: def FileEntryExistsByPathSpec(self, path_spec):
      
      store_index = vshadow.VShadowPathSpecGetStoreIndex(path_spec)
  
      # The virtual root file has not corresponding store index but
      # should have a location.
      if store_index is None:
        location = getattr(path_spec, 'location', None)
        return location is not None and location == self.LOCATION_ROOT
  
      return 0 <= store_index < self._vshadow_volume.number_of_stores
docs: Determines if a file entry for a path specification exists.
  
      Args:
        path_spec (PathSpec): path specification.
  
      Returns:
        bool: True if the file entry exists.