(self, mode=0o777)
| 323 | return self.zip_file.open(str(self), 'w') |
| 324 | |
| 325 | def mkdir(self, mode=0o777): |
| 326 | zinfo = zipfile.ZipInfo(str(self) + '/') |
| 327 | zinfo.external_attr |= stat.S_IFDIR << 16 |
| 328 | zinfo.external_attr |= stat.FILE_ATTRIBUTE_DIRECTORY |
| 329 | self.zip_file.writestr(zinfo, '') |
| 330 | |
| 331 | def symlink_to(self, target, target_is_directory=False): |
| 332 | zinfo = zipfile.ZipInfo(str(self)) |