mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Patch #1094015:
* Use os.makedirs() instead os.mkdir(). (bug #975763) * Use copystat() to copy directory bits (bug #1048878)
This commit is contained in:
parent
711906e0c2
commit
e4172eadf3
2 changed files with 14 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue