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
|
@ -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…
Reference in New Issue