Author serhiy.storchaka
Recipients benhoyt, python-dev, scott.dial, serhiy.storchaka, vstinner
Date 2015-03-10.15:34:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426001649.86.0.41117081211.issue23605@psf.upfronthosting.co.za>
In-reply-to
Content
When followlinks is true, symlinks is not needed.

But I this commit breaks a code like following:

def unsymlink(top):
    for root, dirs, files in os.walk(top):
        for name in dirs:
            path = os.path.join(root, name)
            if os.path.islink(path):
                target = os.path.join(root, os.readlink(path))
                os.unlink(path)
                shutil.copytree(target, path)
        for name in files:
            path = os.path.join(root, name)
            if os.path.islink(path):
                target = os.path.join(root, os.readlink(path))
                os.unlink(path)
                shutil.copy2(target, path)
History
Date User Action Args
2015-03-10 15:34:09serhiy.storchakasetrecipients: + serhiy.storchaka, scott.dial, vstinner, benhoyt, python-dev
2015-03-10 15:34:09serhiy.storchakasetmessageid: <1426001649.86.0.41117081211.issue23605@psf.upfronthosting.co.za>
2015-03-10 15:34:09serhiy.storchakalinkissue23605 messages
2015-03-10 15:34:09serhiy.storchakacreate