Message141813
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. |
|
Date |
User |
Action |
Args |
2011-08-09 12:06:22 | petri.lehtinen | set | recipients:
+ petri.lehtinen, tarek, hynek |
2011-08-09 12:06:22 | petri.lehtinen | set | messageid: <1312891582.66.0.716309232823.issue12715@psf.upfronthosting.co.za> |
2011-08-09 12:06:22 | petri.lehtinen | link | issue12715 messages |
2011-08-09 12:06:21 | petri.lehtinen | create | |
|