def addNewFile(self, name, bytes): if not self.hasFile(name): name = utf8rep(name) self._file.writestr(name, bytes)
def add(self, name, path): name = utf8rep(name) self._file.write(str(path), self._normalisePath(name))