creating zipfile with symlinks

Larry Martell larry.martell at gmail.com
Thu Mar 3 13:37:24 EST 2016


I have a script that creates zip files of dirs containing symlinks. I
was surprised to find that the zipfiles have zipped the targets of the
links as opposed to the links themselves, which is what I wanted and
expected. Googling I found this:

https://doeidoei.wordpress.com/2010/11/23/compressing-files-with-python-symlink-trouble/

Which I don't love as a solution. Anyone know a cleaner way to get
zipfile to zip the links?



More information about the Python-list mailing list