(self, path)
| 38 | path.zip_file.writestr(vfspath(path), data) |
| 39 | |
| 40 | def create_dir(self, path): |
| 41 | zip_info = zipfile.ZipInfo(vfspath(path) + '/') |
| 42 | zip_info.external_attr |= stat.S_IFDIR << 16 |
| 43 | zip_info.external_attr |= stat.FILE_ATTRIBUTE_DIRECTORY |
| 44 | path.zip_file.writestr(zip_info, '') |
| 45 | |
| 46 | def create_symlink(self, path, target): |
| 47 | zip_info = zipfile.ZipInfo(vfspath(path)) |