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


Groups > comp.lang.python > #103995

Re: creating zipfile with symlinks

From MRAB <python@mrabarnett.plus.com>
Newsgroups comp.lang.python
Subject Re: creating zipfile with symlinks
Date 2016-03-03 21:38 +0000
Message-ID <mailman.167.1457041097.20602.python-list@python.org> (permalink)
References <CACwCsY5CFNVnTw=xpPJXXmYEH6Qb70yA+-XoJ+waFUdKDd6a8w@mail.gmail.com> <CACwCsY6cBfO4Wf1SebirMkKVCtm_KaK3vF9OPOfeDF5povscuQ@mail.gmail.com>

Show all headers | View raw


On 2016-03-03 20:58, Larry Martell wrote:
> 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 :-(
>
Is it even possible to zip a link?

A quick search came up with this:

Are hard links possible within a zip archive?
http://stackoverflow.com/questions/8859616/are-hard-links-possible-within-a-zip-archive

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: creating zipfile with symlinks MRAB <python@mrabarnett.plus.com> - 2016-03-03 21:38 +0000

csiph-web