[issue12702] shutil.copytree() should use os.lutimes() to copy the metadata of symlinks

Petri Lehtinen report at bugs.python.org
Sat Aug 6 08:42:48 CEST 2011


New submission from Petri Lehtinen <petri at digip.org>:

As discussed in issue 12183, shutil.copytree(..., symlinks=True) should copy the metadata of symlinks instead of the metadata of the file that the symlink refers to.

This can be achieved by using os.lstat() and os.lutimes() (new in 3.3) on symlinks.

----------
components: Library (Lib)
keywords: easy
messages: 141712
nosy: orsenthil, petri.lehtinen
priority: normal
severity: normal
status: open
title: shutil.copytree() should use os.lutimes() to copy the metadata of symlinks
type: behavior
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12702>
_______________________________________


More information about the Python-bugs-list mailing list