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