From b4c6317586a7293cf2013e56a8612bc9d27f3995 Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Thu, 29 Jul 2004 23:16:24 +0000 Subject: mkdir_p: corrected test of existence --- share/ConfigFile.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/share/ConfigFile.py b/share/ConfigFile.py index deca335..1ad0cee 100644 --- a/share/ConfigFile.py +++ b/share/ConfigFile.py @@ -437,8 +437,7 @@ def add_config_assoc(regex, action): return all_files.add_config_assoc(regex, action) def mkdir_p(path): - s = os.stat(path) - if not s: + if not os.path.exists(path): os.makedirs(os.path.dirname(path)) # ConfigFile.py ends here -- cgit v1.2.1