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 tarek
Recipients TTimo, tarek
Date 2010-04-20.09:07:16
SpamBayes Score 0.0018523079
Marked as misclassified No
Message-id <>
Added in r80244. This new option willl be available in the next 3.2 release. Until 3.2 is released, what you can do is catch the errors
and re-raise the ones that are not due to dangling symlinks:

(not tested)

>>> from shutil import copytree, Error
>>> try:
...     shutil.copytree('../test', '../test2')
... except Error, e:
...     for src, dst, error in e.args[0]:
...         if not os.path.islink(src):
...             raise
...         else:
...             linkto = os.readlink(srcname)
...             if os.path.exists(linkto):
...                 raise
...         # dangling symlink found.. ignoring..
Date User Action Args
2010-04-20 09:07:20tareksetrecipients: + tarek, TTimo
2010-04-20 09:07:18tareksetmessageid: <>
2010-04-20 09:07:17tareklinkissue6547 messages
2010-04-20 09:07:16tarekcreate