From 9fd98b1fc5cf19615c04dc11fd97f406a7697783 Mon Sep 17 00:00:00 2001 From: Michael Hucka Date: Thu, 9 Jul 2020 16:18:54 -0700 Subject: [PATCH] Use os.makedirs(...) to create intermediate directories --- holdit/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/holdit/files.py b/holdit/files.py index ec04a9a..416c82c 100644 --- a/holdit/files.py +++ b/holdit/files.py @@ -90,7 +90,7 @@ def user_data_path(): data_dir = user_data_dir('Hold It', 'CaltechLibrary') if not path.exists(data_dir): if __debug__: log('creating user data directory {}', data_dir) - os.mkdir(data_dir) + os.makedirs(data_dir, exist_ok = True) return data_dir