Mkdirs() failed when provided with unix pathnames. Fixed.

This commit is contained in:
Jack Jansen 2002-08-03 20:49:10 +00:00
parent 6681de2455
commit d64845dbbe
1 changed files with 1 additions and 1 deletions

View File

@ -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)