file.makedirs's exist_ok default to False

This commit is contained in:
Prodesire 2017-12-01 08:13:33 +08:00
parent 3dcc82f416
commit b8cab1e944
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import shutil
# todo tests and docs
def makedirs(path, mode=0o755, ignore_errors=False, exist_ok=True):
def makedirs(path, mode=0o755, ignore_errors=False, exist_ok=False):
if exist_ok and os.path.exists(path):
return
try: