diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2010-04-23 13:03:50 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2010-04-23 13:03:50 (GMT) |
commit | 8c26c7d907d3eb5986b003d1187bc59076185d7b (patch) | |
tree | 6fc9b62dcbc46fc99a64079505177baa8a44ff6a | |
parent | 51a6f72d19d3f446be598431c0ecfc38e27784bc (diff) | |
download | cpython-8c26c7d907d3eb5986b003d1187bc59076185d7b.zip cpython-8c26c7d907d3eb5986b003d1187bc59076185d7b.tar.gz cpython-8c26c7d907d3eb5986b003d1187bc59076185d7b.tar.bz2 |
added a note about the ignore_dangling_symlinks option
-rw-r--r-- | Doc/library/shutil.rst | 3 | ||||
-rw-r--r-- | Lib/shutil.py | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index 4191e0e..d089dc4 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -103,7 +103,8 @@ Directory and files operations exist, a exception will be added in the list of errors raised in a :exc:`Error` exception at the end of the copy process. You can set the optional *ignore_dangling_symlinks* flag to true if you - want to silence this exception. + want to silence this exception. Notice that this option has no effect + on platforms that don't support :func:`os.symlink`. If *ignore* is given, it must be a callable that will receive as its arguments the directory being visited by :func:`copytree`, and a list of its diff --git a/Lib/shutil.py b/Lib/shutil.py index 465f841..8890d24 100644 --- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -161,8 +161,8 @@ def copytree(src, dst, symlinks=False, ignore=None, copy_function=copy2, an Error exception at the end of the copy process. You can set the optional ignore_dangling_symlinks flag to true if you - want to silence this exception. - + want to silence this exception. Notice that this has no effect on + platforms that don't support os.symlink. The optional ignore argument is a callable. If given, it is called with the `src` parameter, which is the directory |