This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients Kevin Teague, giampaolo.rodola, serhiy.storchaka, tarek, xtreak
Date 2019-07-16.10:27:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1563272852.43.0.439092603953.issue37601@roundup.psfhosted.org>
In-reply-to
Content
This looks like a reasonable addition to me. Other APIs in shutil have follow_symlinks parameter.

➜  /tmp ls -al sym
total 0
drwxr-xr-x   3 karthikeyansingaravelan  staff   102 Jul 16 15:52 .
drwxr-xr-x  58 karthikeyansingaravelan  staff  1972 Jul 16 15:52 ..
-rw-r--r--   1 karthikeyansingaravelan  staff     0 Jul 16 15:05 a

➜  /tmp ls -al foo
total 8
drwxr-xr-x   5 karthikeyansingaravelan  staff   170 Jul 16 15:43 .
drwxr-xr-x  58 karthikeyansingaravelan  staff  1972 Jul 16 15:52 ..
-rw-r--r--   1 karthikeyansingaravelan  staff     0 Jul 16 15:00 a
-rw-r--r--   1 karthikeyansingaravelan  staff     0 Jul 16 15:00 b
lrwxr-xr-x   1 karthikeyansingaravelan  staff     8 Jul 16 15:04 c -> /tmp/sym

# Using zip in Mac and zipfile module

➜  /tmp python3 -m zipfile -c cmd.zip foo/*
➜  /tmp python3 -m zipfile -l cmd.zip
File Name                                             Modified             Size
a                                              2019-07-16 15:00:04            0
b                                              2019-07-16 15:00:10            0
c/                                             2019-07-16 15:52:06            0
c/a                                            2019-07-16 15:05:46            0

# Using make_archive

➜  /tmp python3 -c "import shutil; shutil.make_archive('make_archive', 'zip', 'foo')"
➜  /tmp python3 -m zipfile -l make_archive.zip
File Name                                             Modified             Size
c/                                             2019-07-16 15:52:06            0
a                                              2019-07-16 15:00:04            0
b                                              2019-07-16 15:00:10            0
History
Date User Action Args
2019-07-16 10:27:32xtreaksetrecipients: + xtreak, giampaolo.rodola, tarek, serhiy.storchaka, Kevin Teague
2019-07-16 10:27:32xtreaksetmessageid: <1563272852.43.0.439092603953.issue37601@roundup.psfhosted.org>
2019-07-16 10:27:32xtreaklinkissue37601 messages
2019-07-16 10:27:32xtreakcreate