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.

Author petri.lehtinen
Recipients hynek, petri.lehtinen, tarek
Date 2011-08-09.12:06:21
SpamBayes Score 0.0015953315
Marked as misclassified No
Message-id <1312891582.66.0.716309232823.issue12715@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-08-09 12:06:22petri.lehtinensetrecipients: + petri.lehtinen, tarek, hynek
2011-08-09 12:06:22petri.lehtinensetmessageid: <1312891582.66.0.716309232823.issue12715@psf.upfronthosting.co.za>
2011-08-09 12:06:22petri.lehtinenlinkissue12715 messages
2011-08-09 12:06:21petri.lehtinencreate