[New-bugs-announce] [issue12715] Add symlink support to shutil functions
Petri Lehtinen
report at bugs.python.org
Tue Aug 9 14:06:22 CEST 2011
New submission from Petri Lehtinen <petri at digip.org>:
The shutil.copytree() function aknowledges symlinks when given
the symlink=True argument. Other shutil functions should do this
too:
copymode(src, dst, symlinks=True)
If both src and dst are symlinks, copy the source symlink mode
to the destination symlink. If only one of them is a symlink,
dereference it normally.
copystat(src, dst, symlinks=True)
If both src and dst are symlinks, copy the statinfo of the
source symlink to the destination symlink. If only one of them
is a symlink, dereference it normally.
copy(src, dst, symlinks=True)
If the src argument is a symlink, copy the source symlink
instead of dereferencing it.
Problem: What if dst is a symlink to a directory? Should it be
replaced or should the symlink copied inside that directory?
copy2(src, dst, symlinks=True)
Like copy(src, dst, symlinks=True), but copy the metadata too.
The same problem applies.
----------
components: Library (Lib)
messages: 141813
nosy: hynek, petri.lehtinen, tarek
priority: normal
severity: normal
status: open
title: Add symlink support to shutil functions
type: feature request
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12715>
_______________________________________
More information about the New-bugs-announce
mailing list