mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +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):
|
||||
return
|
||||
head, tail = os.path.split(dst)
|
||||
if not ':' in head:
|
||||
if os.sep == ':' and not ':' in head:
|
||||
head = head + ':'
|
||||
mkdirs(head)
|
||||
os.mkdir(dst, 0777)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue