##// END OF EJS Templates
better error message when path exists but is not dir
MinRK -
Show More
@@ -577,4 +577,5 b' def ensure_dir_exists(path, mode=0o777):'
577 577 except OSError as e:
578 578 if e.errno != errno.EEXIST:
579 579 raise
580 No newline at end of file
580 elif not os.path.isdir(path):
581 raise IOError("%r exists but is not a directory" % path)
General Comments 0
You need to be logged in to leave comments. Login now