From 82cc617bec22ffbd8f81977a878b2932e70d8393 Mon Sep 17 00:00:00 2001 From: ljf Date: Thu, 27 Apr 2017 17:26:32 +0200 Subject: [PATCH] [fix] Recursive mkdir was broken --- moulinette/utils/filesystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moulinette/utils/filesystem.py b/moulinette/utils/filesystem.py index 343ce952..182a4b30 100644 --- a/moulinette/utils/filesystem.py +++ b/moulinette/utils/filesystem.py @@ -31,7 +31,7 @@ def mkdir(path, mode=0777, parents=False, uid=None, gid=None, force=False): # Create parents directories as needed head, tail = os.path.split(path) if not tail: - head, tail = path.split(head) + head, tail = os.path.split(head) if head and tail and not os.path.exists(head): try: mkdir(head, mode, parents, uid, gid, force)