parameters: (self, path)
return_statement: return stat_info
docstring: Stats |path| returning its version as as StatInfo object. If |path| ends
      with a '/', it is assumed to be a directory and the StatInfo object returned
      includes child_versions for all paths in the directory.
  
      File paths do not include the name of the zip file, which is arbitrary and
      useless to consumers.
  
      Because the repository will only be downloaded once per server version, all
      stat versions are always 0.
docstring_summary: Stats |path| returning its version as as StatInfo object. If |path| ends
      with a '/', it is assumed to be a directory and the StatInfo object returned
      includes child_versions for all paths in the directory.
docstring_tokens: Stats |path| returning its version as as StatInfo object . If |path| ends with a / it is assumed to be a directory and the StatInfo object returned includes child_versions for all paths in the directory .
function: def Stat(self, path):
      '''Stats |path| returning its version as as StatInfo object. If |path| ends
      with a '/', it is assumed to be a directory and the StatInfo object returned
      includes child_versions for all paths in the directory.
  
      File paths do not include the name of the zip file, which is arbitrary and
      useless to consumers.
  
      Because the repository will only be downloaded once per server version, all
      stat versions are always 0.
      '''
      self._EnsureRepoZip()
      repo_zip = self._repo_zip.Get()
  
      if path not in repo_zip.Paths():
        raise FileNotFoundError('"%s" does not contain file "%s"' %
                                (self._repo_key, path))
  
      version = self._stat_cache.Get(self._repo_key).Get()
      assert version is not None, ('There was a zipball in datastore; there '
                                   'should be a version cached for it')
  
      stat_info = StatInfo(version)
      if IsDirectory(path):
        stat_info.child_versions = dict((p, StatInfo(version))
                                        for p in repo_zip.List(path))
      return stat_info
function_tokens: def Stat ( self , path ) : self . _EnsureRepoZip ( ) repo_zip = self . _repo_zip . Get ( ) if path not in repo_zip . Paths ( ) : raise FileNotFoundError ( '"%s" does not contain file "%s"' % ( self . _repo_key , path ) ) version = self . _stat_cache . Get ( self . _repo_key ) . Get ( ) assert version is not None , ( 'There was a zipball in datastore; there ' 'should be a version cached for it' ) stat_info = StatInfo ( version ) if IsDirectory ( path ) : stat_info . child_versions = dict ( ( p , StatInfo ( version ) ) for p in repo_zip . List ( path ) ) return stat_info