Message220088
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:19 | shajunxing | set | recipients:
+ shajunxing |
2014-06-09 13:19:19 | shajunxing | set | messageid: <1402319959.34.0.00412025295877.issue21697@psf.upfronthosting.co.za> |
2014-06-09 13:19:19 | shajunxing | link | issue21697 messages |
2014-06-09 13:19:18 | shajunxing | create | |
|