Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef5c716

Browse files
committed
Fix closes Issue12183 - Explain the Symlink copy behavior in shutil.copytree. Patch by Petri Lehtinen.
1 parent eb71ad4 commit ef5c716

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/library/shutil.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ Directory and files operations
101101
:func:`copy2`.
102102

103103
If *symlinks* is true, symbolic links in the source tree are represented as
104-
symbolic links in the new tree; if false or omitted, the contents of the
105-
linked files are copied to the new tree.
104+
symbolic links in the new tree, but the metadata of the original links is NOT
105+
copied; if false or omitted, the contents and metadata of the linked files
106+
are copied to the new tree.
106107

107108
When *symlinks* is false, if the file pointed by the symlink doesn't
108109
exist, a exception will be added in the list of errors raised in

0 commit comments

Comments
 (0)