Commit d065de94 authored by Vincent Pelletier's avatar Vincent Pelletier

Create intermediate directories implicitly as well.

parent 296d58c1
......@@ -41,7 +41,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.")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment