From 97a6ff92674a74a92050ae29e3606cb219b3ed93 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Mon, 2 Jan 2017 17:54:14 +0100 Subject: When initializing a collection, also create itemdir --- lesana/collection.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3