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


Groups > comp.lang.python > #103991

Re: creating zipfile with symlinks

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Larry Martell <larry.martell@gmail.com>
Newsgroups comp.lang.python
Subject Re: creating zipfile with symlinks
Date Thu, 3 Mar 2016 15:58:10 -0500
Lines 12
Message-ID <mailman.163.1457038733.20602.python-list@python.org> (permalink)
References <CACwCsY5CFNVnTw=xpPJXXmYEH6Qb70yA+-XoJ+waFUdKDd6a8w@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de MpJ4lvc4zbD8FyKt2eQI9QqussySW9xA15Czj+TPZ5Qw==
Return-Path <larry.martell@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'received:209.85.223': 0.03; ':-(': 0.07; 'expected.': 0.09; 'targets': 0.09; 'themselves,': 0.09; 'thu,': 0.15; '2016': 0.16; 'cleaner': 0.16; 'googling': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'zipfile': 0.16; 'wrote:': 0.16; 'creates': 0.18; 'solution.': 0.18; 'all,': 0.20; 'to:name:python-list@python.org': 0.20; 'this:': 0.23; 'header:In-Reply-To:1': 0.24; 'script': 0.25; "doesn't": 0.26; 'message-id:@mail.gmail.com': 0.27; 'opposed': 0.27; 'larry': 0.29; 'code': 0.30; 'anyone': 0.32; 'surprised': 0.33; 'received:google.com': 0.35; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'wanted': 0.37; 'received:209': 0.38; 'files': 0.38; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'mar': 0.65; 'url:11': 0.72; 'url:wordpress': 0.79; 'url:23': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=RwY+R7vVVkI7r2Pqjf+wO80/0aKbDHnmluSKezS3VqE=; b=xa8GsevpmWFueL2ZTUezSdAqD0Sofc3tg7uDjxAQuGRp30LFPpqjqGkwpoir2wKU33 0E8Nl0qxRd6JJiOONfUxZRtnB0IlxjBVwIH7LS9M12DovzIcrBL8EOcms/SazkLC0tL8 2BklvlRB3uHewIecUHV7bEwQsFAyJR9SbItnIGT0rgB57o8Fir3uqqaDzn0x7EpBllSY 23iQQkhQ3nH0UnkcQXoOjMdlluA1pIP+M5Xa4Z2UV0vQ4xERDbY8lmBvE5MM+ehPAob+ A4CRWyiO9uGIjZXuJuSCCpSE4iDjEvK2A1T1Eh04r+qgj6C+/7s/9zgqDDf73EBtki6Z VvjA==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=RwY+R7vVVkI7r2Pqjf+wO80/0aKbDHnmluSKezS3VqE=; b=m8uyCczNjxwFeC5uGcJAJ/Z74Vqt7GG6AprrowEKNHyUu4+XMQyyclFL9NYEhNtqyD CM6i3oxIjThkaENCCGO/fT3jAHbGtkBycJp1XcXnkhsduHJZTJn8xY+2PLI8lI89nisr BfqKK1KGd31+7kaZ/v03yfoc/htIWakE6B0GuIh49ta1knTVHfQmZo1vQMDvX/KBek2j +6wJm/9x3aAXG/f4y1iuysMeLJeq4X+qcL6qdVP9z8P+JHQlmE5CDD3A7IccYfzqbXQn MXUyYbuVORuFS+ZQCpVtpXhPQEsCZR8iEq5Q22Gl6p7AmGUvuIYrVinaofkcTK7J+1Xn 8a5A==
X-Gm-Message-State AD7BkJJODhwgBXDE8SeV6ped1FNH+A80H88rYKWS+VKgSAxPpOpY9ul0EnLozt8rTgH6YX30xRF266NcV3rt0A==
X-Received by 10.107.156.208 with SMTP id f199mr5884195ioe.0.1457038730480; Thu, 03 Mar 2016 12:58:50 -0800 (PST)
In-Reply-To <CACwCsY5CFNVnTw=xpPJXXmYEH6Qb70yA+-XoJ+waFUdKDd6a8w@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:103991

Show key headers only | View raw


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 :-(

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


Thread

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

csiph-web