summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lesana/collection.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lesana/collection.py b/lesana/collection.py
index 6e32929..84845f5 100644
--- a/lesana/collection.py
+++ b/lesana/collection.py
@@ -283,4 +283,6 @@ class Collection(object):
edit_file(filepath)
if git_enabled and repo:
repo.index.add(['settings.yaml'])
- return cls(c_dir)
+ coll = cls(c_dir)
+ os.makedirs(os.path.join(coll.basedir, coll.itemdir), exist_ok=True)
+ return coll