diff --git a/slapos/recipe/mkdirectory.py b/slapos/recipe/mkdirectory.py index 2eebf5579cf013267036fe13630061dd5b25f3cd..0bb856eec6ce2067ac7745ddc8cab060278ac196 100644 --- a/slapos/recipe/mkdirectory.py +++ b/slapos/recipe/mkdirectory.py @@ -46,7 +46,7 @@ class Recipe(GenericBaseRecipe): path = directory if not os.path.exists(path): - os.mkdir(path, self.mode) + os.makedirs(path, self.mode) elif not os.path.isdir(path): raise OSError("%s path exits, but it's not a directory.")