Fred Gansevles <gansevle@cs.utwente.nl>:

The copytree function doesn't pass the symlinks parameter in recursicve
calls
This commit is contained in:
Fred Drake 2000-04-07 14:34:50 +00:00
parent 37d21e117f
commit 5fa38862bb
1 changed files with 1 additions and 1 deletions

View File

@ -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.?