mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Mkdirs() failed when provided with unix pathnames. Fixed.
This commit is contained in:
parent
6681de2455
commit
d64845dbbe
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ def mkdirs(dst):
|
||||||
if dst == '' or os.path.exists(dst):
|
if dst == '' or os.path.exists(dst):
|
||||||
return
|
return
|
||||||
head, tail = os.path.split(dst)
|
head, tail = os.path.split(dst)
|
||||||
if not ':' in head:
|
if os.sep == ':' and not ':' in head:
|
||||||
head = head + ':'
|
head = head + ':'
|
||||||
mkdirs(head)
|
mkdirs(head)
|
||||||
os.mkdir(dst, 0777)
|
os.mkdir(dst, 0777)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue