Commit a1be88e2 authored by Georg Brandl's avatar Georg Brandl

patch [ 1242454 ] shutil.copytree() quits too soon after an error.

parent 99d7e4e8
......@@ -124,6 +124,10 @@ def copytree(src, dst, symlinks=False):
# XXX What about devices, sockets etc.?
except (IOError, os.error), why:
errors.append((srcname, dstname, why))
# catch the Error from the recursive copytree so that we can
# continue with other files
except Error, err:
errors.extend(err.args[0])
copystat(src, dst)
if errors:
raise Error, errors
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment