Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #103991 > unrolled thread

Re: creating zipfile with symlinks

Started byLarry Martell <larry.martell@gmail.com>
First post2016-03-03 15:58 -0500
Last post2016-03-03 15:58 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: creating zipfile with symlinks Larry Martell <larry.martell@gmail.com> - 2016-03-03 15:58 -0500

#103991 — Re: creating zipfile with symlinks

FromLarry Martell <larry.martell@gmail.com>
Date2016-03-03 15:58 -0500
SubjectRe: creating zipfile with symlinks
Message-ID<mailman.163.1457038733.20602.python-list@python.org>
On Thu, Mar 3, 2016 at 1:37 PM, Larry Martell <larry.martell@gmail.com> wrote:
> 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?

Actually the code on that site doesn't work at all, so it's not a solution :-(

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web