]> granicus.if.org Git - python/commitdiff
Fred Gansevles <gansevle@cs.utwente.nl>:
authorFred Drake <fdrake@acm.org>
Fri, 7 Apr 2000 14:34:50 +0000 (14:34 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 7 Apr 2000 14:34:50 +0000 (14:34 +0000)
The copytree function doesn't pass the symlinks parameter in recursicve
calls

Lib/shutil.py

index 698543f78b695025464770f9cdd3256a15d72df4..88abd1095c08356f1ef71c6eb8ab69afee3c9247 100644 (file)
@@ -88,7 +88,7 @@ def copytree(src, dst, symlinks=0):
                 linkto = os.readlink(srcname)
                 os.symlink(linkto, dstname)
             elif os.path.isdir(srcname):
-                copytree(srcname, dstname)
+                copytree(srcname, dstname, symlinks)
             else:
                 copy2(srcname, dstname)
             # XXX What about devices, sockets etc.?