Author shajunxing
Recipients shajunxing
Date 2014-06-09.13:19:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402319959.34.0.00412025295877.issue21697@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-06-09 13:19:19shajunxingsetrecipients: + shajunxing
2014-06-09 13:19:19shajunxingsetmessageid: <1402319959.34.0.00412025295877.issue21697@psf.upfronthosting.co.za>
2014-06-09 13:19:19shajunxinglinkissue21697 messages
2014-06-09 13:19:18shajunxingcreate