def save(self, path): """ Saves the ZipFile to `path`, which can be a file-system path or a file-like object. """ zp_out = ZipFile(path, 'w') for zp_name in self._namelist: zp_out.writestr(zp_name, self.read(zp_name)) zp_out.close()