mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
Fred Gansevles <gansevle@cs.utwente.nl>:
The copytree function doesn't pass the symlinks parameter in recursicve calls
This commit is contained in:
parent
37d21e117f
commit
5fa38862bb
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ def copytree(src, dst, symlinks=0):
|
||||||
linkto = os.readlink(srcname)
|
linkto = os.readlink(srcname)
|
||||||
os.symlink(linkto, dstname)
|
os.symlink(linkto, dstname)
|
||||||
elif os.path.isdir(srcname):
|
elif os.path.isdir(srcname):
|
||||||
copytree(srcname, dstname)
|
copytree(srcname, dstname, symlinks)
|
||||||
else:
|
else:
|
||||||
copy2(srcname, dstname)
|
copy2(srcname, dstname)
|
||||||
# XXX What about devices, sockets etc.?
|
# XXX What about devices, sockets etc.?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue