Author Kevin Teague
Recipients Kevin Teague
Date 2019-07-16.00:15:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1563236138.18.0.17460405679.issue37601@roundup.psfhosted.org>
In-reply-to
Content
Zip archives created with shutil.make_archive will not follow symlinks.

The shutil._make_zipfile uses os.walk:

    for dirpath, dirnames, filenames in os.walk(base_dir)

os.walk has the followlinks parameter:

    for dirpath, dirnames, filenames in os.walk(base_dir, followlinks=True)

Setting followlinks to True will include symlinks in a zip archive.

Could a followlinks parameter be added to shutil.make_archive?
History
Date User Action Args
2019-07-16 00:15:38Kevin Teaguesetrecipients: + Kevin Teague
2019-07-16 00:15:38Kevin Teaguesetmessageid: <1563236138.18.0.17460405679.issue37601@roundup.psfhosted.org>
2019-07-16 00:15:38Kevin Teaguelinkissue37601 messages
2019-07-16 00:15:37Kevin Teaguecreate