(self, name)
return self._current_file_stream
Start writing a named file to the package.

    Args:
      name: (str) path which will identify the contents in the archive.

    Returns:
      A file-like object to write the contents to.
Start writing a named file to the package.
Start writing a named file to the package .
def StartFile(self, name):
    """Start writing a named file to the package.

    Args:
      name: (str) path which will identify the contents in the archive.

    Returns:
      A file-like object to write the contents to.
    """
    self.EndFile()
    full_path = os.path.join(self._root_path, self._file_path_prefix, name)
    self._MakePath(os.path.dirname(full_path))
    self._current_file_stream = open(full_path, 'w')
    return self._current_file_stream
def StartFile ( self , name ) : self . EndFile ( ) full_path = os . path . join ( self . _root_path , self . _file_path_prefix , name ) self . _MakePath ( os . path . dirname ( full_path ) ) self . _current_file_stream = open ( full_path , 'w' ) return self . _current_file_stream