From: Senthil Kumaran Date: Tue, 2 Aug 2011 10:52:28 +0000 (+0800) Subject: Fix closes Issue12183 - Explain the Symlink copy behavior in shutil.copytree. Patch... X-Git-Tag: v3.2.2rc1~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef5c71617634ba24b6ed14d65d0466fe84e53057;p=python Fix closes Issue12183 - Explain the Symlink copy behavior in shutil.copytree. Patch by Petri Lehtinen. --- diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index 5e5f8c94bb..a785682c0f 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -101,8 +101,9 @@ Directory and files operations :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