Mkdirs() failed when provided with unix pathnames. Fixed.
This commit is contained in:
parent
6681de2455
commit
d64845dbbe
|
@ -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…
Reference in New Issue