summaryrefslogtreecommitdiffstats
path: root/Lib/shutil.py
diff options
context:
space:
mode:
authorJohannes Gijsbers <jlg@dds.nl>2005-01-08 12:31:29 (GMT)
committerJohannes Gijsbers <jlg@dds.nl>2005-01-08 12:31:29 (GMT)
commite4172eadf3fb9c1de591305ad4ca4ce3e252abd3 (patch)
tree39ef31310e9baeda724de10e619e4aa7b7d9d776 /Lib/shutil.py
parent711906e0c26c010600221da50aa930008b8a9447 (diff)
downloadcpython-e4172eadf3fb9c1de591305ad4ca4ce3e252abd3.zip
cpython-e4172eadf3fb9c1de591305ad4ca4ce3e252abd3.tar.gz
cpython-e4172eadf3fb9c1de591305ad4ca4ce3e252abd3.tar.bz2
Patch #1094015:
* Use os.makedirs() instead os.mkdir(). (bug #975763) * Use copystat() to copy directory bits (bug #1048878)
Diffstat (limited to 'Lib/shutil.py')
-rw-r--r--Lib/shutil.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/shutil.py b/Lib/shutil.py
index 5bc4377..d6e7d18 100644
--- a/Lib/shutil.py
+++ b/Lib/shutil.py
@@ -108,7 +108,8 @@ def copytree(src, dst, symlinks=False):
"""
names = os.listdir(src)
- os.mkdir(dst)
+ os.makedirs(dst)
+ copystat(src, dst)
errors = []
for name in names:
srcname = os.path.join(src, name)