Show More
@@ -577,4 +577,5 b' def ensure_dir_exists(path, mode=0o777):' | |||||
577 | except OSError as e: |
|
577 | except OSError as e: | |
578 | if e.errno != errno.EEXIST: |
|
578 | if e.errno != errno.EEXIST: | |
579 | raise |
|
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