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 shajunxing
Recipients shajunxing
Date 2014-06-09.13:19:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
While using shutil.copytree() and the source containing symbolic directory (not symbolic file), an error will be raised. I checked the source code and found an obvlous mistake: shutil.copytree() using os.path.islink() to checker whether the source is a symbolic link, it's okay, but after doing this, os.path.isdir() should be called because a symbolic link may either be a file or a directry, shutil.copytree() just treated all of them as file, and invoke copy_function to copy it, so error happens.

I don't know whether newer versions have fixed this bug, but I googled it and found nothing.
Date User Action Args
2014-06-09 13:19:19shajunxingsetrecipients: + shajunxing
2014-06-09 13:19:19shajunxingsetmessageid: <>
2014-06-09 13:19:19shajunxinglinkissue21697 messages
2014-06-09 13:19:18shajunxingcreate