Commit ed4a311d authored by Vincent Pelletier's avatar Vincent Pelletier Committed by Cédric de Saint Martin

Create intermediate directories implicitly as well.

Signed-off-by: default avatarCédric de Saint Martin <cedric.dsm@tiolive.com>
parent 48e7cd31
......@@ -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.")
......
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