[Python-checkins] cpython (3.2): Fix closes Issue12183 - Explain the Symlink copy behavior in shutil.copytree.
senthil.kumaran
python-checkins at python.org
Tue Aug 2 12:55:22 CEST 2011
http://hg.python.org/cpython/rev/299992730c87
changeset: 71691:299992730c87
branch: 3.2
parent: 71688:1013c9fbd83c
user: Senthil Kumaran <senthil at uthcode.com>
date: Tue Aug 02 18:52:28 2011 +0800
summary:
Fix closes Issue12183 - Explain the Symlink copy behavior in shutil.copytree. Patch by Petri Lehtinen.
files:
Doc/library/shutil.rst | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst
--- a/Doc/library/shutil.rst
+++ b/Doc/library/shutil.rst
@@ -101,8 +101,9 @@
:func:`copy2`.
If *symlinks* is true, symbolic links in the source tree are represented as
- symbolic links in the new tree; if false or omitted, the contents of the
- linked files are copied to the new tree.
+ symbolic links in the new tree, but the metadata of the original links is NOT
+ copied; if false or omitted, the contents and metadata of the linked files
+ are copied to the new tree.
When *symlinks* is false, if the file pointed by the symlink doesn't
exist, a exception will be added in the list of errors raised in
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list