From 8ceaf795d891b75fead6893c8efe8d999b7ff551 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 14 Mar 2021 11:01:39 +0300 Subject: project.boost.download: create missing directories --- project/utils.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'project/utils.py') diff --git a/project/utils.py b/project/utils.py index 76557b1..c63b8a4 100644 --- a/project/utils.py +++ b/project/utils.py @@ -16,6 +16,10 @@ def normalize_path(s): return os.path.abspath(os.path.normpath(s)) +def mkdir_parent(path): + os.makedirs(path, exist_ok=True) + + @contextmanager def setup_logging(): logging.basicConfig( -- cgit v1.2.3