From b8cab1e944fe538dd6f383a442737be1a380f6e3 Mon Sep 17 00:00:00 2001 From: Prodesire Date: Fri, 1 Dec 2017 08:13:33 +0800 Subject: [PATCH] file.makedirs's exist_ok default to False --- pydu/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydu/file.py b/pydu/file.py index 699537d..4bae1e8 100644 --- a/pydu/file.py +++ b/pydu/file.py @@ -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: