makedirs should complain about the folder existing already

This commit is contained in:
2020-03-23 16:19:24 +00:00
parent 94da09409a
commit 8380deb036
+1 -1
View File
@@ -86,7 +86,7 @@ def make_missing_dir(d):
msg = "Directory \"{}\" does not exist, creating it...".format(d)
print(msg)
os.makedirs(d)
os.makedirs(d, exist_ok=True)
os.chmod(d, 0o775)