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


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

How to make shutil.make_archive support symbol links?

Started byzcbenz@gmail.com
First post2013-05-13 01:21 -0700
Last post2013-05-13 01:21 -0700
Articles 1 — 1 participant

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


Contents

  How to make shutil.make_archive support symbol links? zcbenz@gmail.com - 2013-05-13 01:21 -0700

#45229 — How to make shutil.make_archive support symbol links?

Fromzcbenz@gmail.com
Date2013-05-13 01:21 -0700
SubjectHow to make shutil.make_archive support symbol links?
Message-ID<e87c2b90-5bc1-471a-8d26-8dbb7cf38722@googlegroups.com>
Hi comp.lang.python group,

I'm trying to make a zip archive with shutil.make_archive, but it seems that it doesn't support symbol links, after creating a archive with shutil.make_archive, all the symbol links would be lost.

What I want is something like `zip -y`, which "stores symbolic links as the link instead of the referenced file", is it possible to do in pure python? I also looked into the zipfile module, but it mentions no symbol links.

Thanks.

Cheng

[toc] | [standalone]


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


csiph-web