How to create symlink in zipfile in python
问题 I have a zipfile which is stored in memory as io.BytesIO buffer. Within, the zipfile, I need to create a symlink to one of the directories. Below is what I have tried so far (from this similar question on SO) but it is not creating the link as I want at top level. Link to be created to : root/scale/lib/hypervisor/kvm/pika_3_5 Link name : 'pika' Link location : at top level Existing Zipfile : data['egg_buffer'] with zipfile.ZipFile(data['egg_buffer'], 'a') as zip_buffer: dest = 'root/scale/lib