]> granicus.if.org Git - python/commit
Issue #12715: Add an optional symlinks argument to shutil functions (copyfile, copymo...
authorAntoine Pitrou <solipsis@pitrou.net>
Thu, 29 Dec 2011 17:54:15 +0000 (18:54 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Thu, 29 Dec 2011 17:54:15 +0000 (18:54 +0100)
commit78091e63d650edd9df09e3fd90d4cceed27b9a74
tree480b0518ec483c6fcf9a840ccae4f2617edecc06
parentd2f1db5355950fbad170b34750aff1c6074df949
Issue #12715: Add an optional symlinks argument to shutil functions (copyfile, copymode, copystat, copy, copy2).
When that parameter is true, symlinks aren't dereferenced and the operation
instead acts on the symlink itself (or creates one, if relevant).

Patch by Hynek Schlawack.
Doc/library/shutil.rst
Lib/shutil.py
Lib/test/test_shutil.py
Misc/NEWS