This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 petri.lehtinen
收信人 hynek, petri.lehtinen, tarek
日期 2011-08-09.12:06:21
SpamBayes Score 0.0015953315
Marked as misclassified
Message-id <1312891582.66.0.716309232823.issue12715@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2011-08-09 12:06:22petri.lehtinen修改recipients: + petri.lehtinen, tarek, hynek
2011-08-09 12:06:22petri.lehtinen修改messageid: <1312891582.66.0.716309232823.issue12715@psf.upfronthosting.co.za>
2011-08-09 12:06:22petri.lehtinen链接issue12715 messages
2011-08-09 12:06:21petri.lehtinen创建