Message141813
| 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: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 |
|